This commit is contained in:
孟帅
2023-07-20 18:01:10 +08:00
parent 9113fc5297
commit 373d9627fb
492 changed files with 12170 additions and 6982 deletions

View File

@@ -226,11 +226,11 @@ export const useUserStore = defineStore({
return false;
}
if (this.loginConfig?.loginAutoOpenId !== 1) {
if (this.loginConfig !== null && this.loginConfig.loginAutoOpenId !== 1) {
return false;
}
return this.info?.openId === '';
return this.info === null || this.info.openId === '';
},
// 登出
async logout() {