验证优化的代码有点问题,先恢复之前代码
This commit is contained in:
parent
3bceee2290
commit
ffe21b12ca
@ -53,7 +53,6 @@ router.beforeEach(async (to, from, next) => {
|
||||
} else {
|
||||
next(`/login?redirect=${to.path}`);
|
||||
}
|
||||
window.location.reload(); // 强制刷新以重置路由,避免卡在白屏
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -52,7 +52,6 @@ router.beforeEach(async (to, from, next) => {
|
||||
} else {
|
||||
next(`/login?redirect=${to.path}`);
|
||||
}
|
||||
window.location.reload(); // 强制刷新以重置路由,避免卡在白屏
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user