提交一下修改

This commit is contained in:
daihh
2023-07-19 22:05:13 +08:00
parent 8ab7078357
commit a6054bb863
3 changed files with 3 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ router.beforeEach((to, from, next) => {
// 判断当前控制台是否已拉取完数据 // 判断当前控制台是否已拉取完数据
store.dispatch('InitData').then(res => { store.dispatch('InitData').then(res => {
//加载白名单信息 //加载白名单信息
testUser.init(); //testUser.init();
//加载信息资源归属,系统分类信息 //加载信息资源归属,系统分类信息
store.dispatch('resOwner/loadResOwners'); store.dispatch('resOwner/loadResOwners');
store.dispatch('sysType/loadSysTypes'); store.dispatch('sysType/loadSysTypes');

View File

@@ -7,6 +7,7 @@ const TokenKey = 'token'
export function getToken() { export function getToken() {
return Cookies.get(TokenKey) return Cookies.get(TokenKey)
} }
export function setToken(token) { export function setToken(token) {
return Cookies.set(TokenKey, token) return Cookies.set(TokenKey, token)
} }