调用 router.push 问题 #232
chuangmaster
started this conversation in
General
Replies: 1 comment
-
检查一下是不是 token 没有清除 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
作者您好,谢谢您的专案,让我有学习机会
我尝试在登出按钮调用调用 router.push("/logout")
发现画面都不会进行跳转
最后发现 router.beforeEach(async (to, _from, next)
都会再次进到 /login -> /dashboard
想请教您原因为何?
Beta Was this translation helpful? Give feedback.
All reactions