默认登录了某个账号,无法退出、登录成功之后提示重复、组织成员邀请等新消息没有在消息图标上体现

This commit is contained in:
付民康
2025-03-26 17:11:34 +08:00
parent b083ee3383
commit c588545227
3 changed files with 10 additions and 4 deletions

View File

@@ -63,6 +63,10 @@ export const useAccountStore = defineStore('accountInfo', () => {
// const { data, error } = await getUserToken();
// if (data?.data) {
// const { access_token, refresh_token } = data.data;
if(!access_token|| !refresh_token) {
return
}
localStorage.setItem('access_token', access_token);
localStorage.setItem('refresh_token', refresh_token);
saveStatus(true);