mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-11 21:23:47 +08:00
v3.11.0 【优化】SaTokenConfig与三级等保配置关联;【优化】smart-app去掉无用请求;
This commit is contained in:
@@ -61,13 +61,19 @@ export const useUserStore = defineStore({
|
||||
logout() {
|
||||
this.token = null;
|
||||
this.setUserLoginInfo(defaultUserInfo);
|
||||
console.log(333,USER_TOKEN);
|
||||
uni.removeStorage(USER_TOKEN);
|
||||
},
|
||||
clearUserLoginInfo() {
|
||||
this.setUserLoginInfo(defaultUserInfo);
|
||||
console.log(444,USER_TOKEN);
|
||||
uni.removeStorage(USER_TOKEN);
|
||||
},
|
||||
async getLoginInfo() {
|
||||
let token = uni.getStorageSync(USER_TOKEN);
|
||||
if(!token){
|
||||
return;
|
||||
}
|
||||
let res = await loginApi.getLoginInfo();
|
||||
this.setUserLoginInfo(res.data);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user