This commit is contained in:
X1627315083
2024-03-04 16:17:48 +08:00
parent 03d11ed8fb
commit 8f06235e63

View File

@@ -101,8 +101,10 @@ router.beforeEach((to, from, next) => {
} else {
// 如果页面存在,正常跳转
const toName = to.name === 'upgrade';
console.log(toName);
if (toName) {
next({ name: 'home' });
next({ name: 'login' });
} else {
next();
}