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

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

No files matched your search

+6 -1
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) {