This commit is contained in:
qsh
2025-05-16 10:50:53 +08:00
parent ed6da288bc
commit 266aaa312a
7 changed files with 116 additions and 23 deletions

View File

@@ -6,7 +6,7 @@ import { useDesign } from '@/hooks/web/useDesign'
import avatarImg from '@/assets/imgs/avatar.gif'
import { useUserStore } from '@/store/modules/user'
import { useTagsViewStore } from '@/store/modules/tagsView'
import { getTenantId, getAppId } from '@/utils/auth'
// import { getTenantId, getAppId } from '@/utils/auth'
import { Setting } from '@/layout/components/Setting'
import cache from '@/plugins/cache'
@@ -36,11 +36,11 @@ const loginOut = () => {
type: 'warning'
})
.then(async () => {
const tenantId = getTenantId()
const appId = getAppId()
// const tenantId = getTenantId()
// const appId = getAppId()
await userStore.loginOut()
tagsViewStore.delAllViews()
replace(`/login?tenantId=${tenantId}&appId=${appId}`)
replace(`/login`)
})
.catch(() => {})
}