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: User or sandbox instance detail page link #734

Conversation

sunnywx
Copy link
Contributor

@sunnywx sunnywx commented Jan 25, 2019

No description provided.

@codecov
Copy link

codecov bot commented Jan 25, 2019

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #734   +/-   ##
=======================================
  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 5fd3ed6...ebec53e. Read the comment docs.

clusterId
});
};

Copy link
Contributor

Choose a reason for hiding this comment

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

感觉这里不用写这个判断方法,直接获取当前的路由, const { pathname } = history.location;,再把clusterId拼在结尾就行了{${pathname}/${clusterId}}

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 72771a9 into openpitrix:master Jan 25, 2019
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