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

resetRouter #2088

Closed
ccccccode opened this issue May 16, 2019 · 2 comments
Closed

resetRouter #2088

ccccccode opened this issue May 16, 2019 · 2 comments

Comments

@ccccccode
Copy link

请教一个问题:

退出登陆后重新登陆,控制台报路由重复的问题

在router/index.js中看见有resetRoute()这个方法,我现在在退出的时候调用,再次登陆的时候还是会报路由重复

logout:

1557978665(1)

1557978617(1)

resetRoute:

1557978714(1)

@ccccccode
Copy link
Author

ccccccode commented May 16, 2019

我这里有3个登陆页面 index agent store,在退出的时候已经做好了判断,通过哪个页面登陆的,退出就会在哪个页面

现在用刷新的办法解决路由重复的问题,会直接跳转到index,我在agent登陆页面登陆的,我想退出的时候还是在agent登陆页面,

@PanJiaChen
Copy link
Owner

你说的 本项目都实现了,请自行阅读源码和debug。

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

No branches or pull requests

2 participants