feat: 去除系统免登录加密参数data

This commit is contained in:
TsMask
2024-11-25 18:55:16 +08:00
parent 1b28260680
commit 5d4a04ecf2
2 changed files with 3 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
import BasicLayout from '../layouts/BasicLayout.vue';
import BlankLayout from '../layouts/BlankLayout.vue';
import { getToken } from '@/plugins/auth-token';
import { getToken, setToken } from '@/plugins/auth-token';
import { validHttp } from '@/utils/regular-utils';
import useUserStore from '@/store/modules/user';
import useAppStore from '@/store/modules/app';
@@ -187,6 +187,7 @@ router.beforeEach(async (to, from, next) => {
// 免用户登录认证
if (!appStore.loginAuth) {
token = '== Not Login Auth ==';
setToken('== Not Login Auth ==');
}
// 没有token