Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Portal issues #696

Merged
merged 3 commits into from
Jan 22, 2019
Merged

fix: Portal issues #696

merged 3 commits into from
Jan 22, 2019

Conversation

sunnywx
Copy link
Contributor

@sunnywx sunnywx commented Jan 22, 2019

No description provided.

@sunnywx sunnywx requested review from whDongRui and liiil825 January 22, 2019 09:17
@codecov
Copy link

codecov bot commented Jan 22, 2019

Codecov Report

Merging #696 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #696   +/-   ##
=======================================
  Coverage   32.33%   32.33%           
=======================================
  Files         102      102           
  Lines        1367     1367           
  Branches      352      352           
=======================================
  Hits          442      442           
  Misses        894      894           
  Partials       31       31

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9323674...bf72f4d. Read the comment docs.

@openpitrix openpitrix deleted a comment Jan 22, 2019
if (!user[method]) {
return <Redirect to="/" />;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉这里if else 嵌套的有点多,可以定义布尔变量来判断是否需要redirect。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里没必要了,清晰为主

@sunnywx sunnywx merged commit 16fd95f into openpitrix:master Jan 22, 2019
@sunnywx sunnywx deleted the fix/portal-problems branch January 22, 2019 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants