diff --git a/MD/specs/FRONTEND_CHECKLIST.md b/MD/specs/FRONTEND_CHECKLIST.md index 7b9217694..541b880a5 100755 --- a/MD/specs/FRONTEND_CHECKLIST.md +++ b/MD/specs/FRONTEND_CHECKLIST.md @@ -1,3 +1,4 @@ + # 前端发布前检查清单 > **文档类型**: 技术规范 diff --git a/healthlink-his-ui/src/store/modules/user.js b/healthlink-his-ui/src/store/modules/user.js index 3d78ba00e..e7dadd08d 100755 --- a/healthlink-his-ui/src/store/modules/user.js +++ b/healthlink-his-ui/src/store/modules/user.js @@ -1,4 +1,5 @@ import {getInfo, login, logout} from '@/api/login' +import useTagsViewStore from '@/store/modules/tagsView' import {getToken, removeToken, setToken} from '@/utils/auth' import defAva from '@/assets/images/user.png' import {defineStore} from 'pinia' @@ -84,6 +85,8 @@ const useUserStore = defineStore( this.permissions = [] this.tenantId = '' removeToken() + // 清除标签页内存状态,防止切换账户时残留 + try { useTagsViewStore().delAllViews() } catch(e) {} resolve() }).catch(error => { reject(error)