fix
This commit is contained in:
@@ -101,8 +101,10 @@ router.beforeEach((to, from, next) => {
|
|||||||
} else {
|
} else {
|
||||||
// 如果页面存在,正常跳转
|
// 如果页面存在,正常跳转
|
||||||
const toName = to.name === 'upgrade';
|
const toName = to.name === 'upgrade';
|
||||||
|
console.log(toName);
|
||||||
|
|
||||||
if (toName) {
|
if (toName) {
|
||||||
next({ name: 'home' });
|
next({ name: 'login' });
|
||||||
} else {
|
} else {
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user