feat: 系统免登录参数路由跳转

This commit is contained in:
TsMask
2024-11-25 11:59:46 +08:00
parent 7d69d3c21d
commit 1b28260680
2 changed files with 10 additions and 1 deletions

View File

@@ -182,7 +182,12 @@ router.beforeEach(async (to, from, next) => {
next({ name: 'Index' });
}
const token = getToken();
let token = getToken();
// 免用户登录认证
if (!appStore.loginAuth) {
token = '== Not Login Auth ==';
}
// 没有token
if (!token) {