feat: 登录逻辑的调整
This commit is contained in:
@@ -60,6 +60,7 @@ function request(url, args = {}, method = "POST", customConfig = {}) {
|
||||
uni.setStorageSync("token", "");
|
||||
const appStore = useAppStore();
|
||||
appStore.setHasToken(false);
|
||||
appStore.setTokenExpired(true);
|
||||
uni.$emit(NOTICE_EVENT_LOGOUT);
|
||||
goLogin();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user