sc
This commit is contained in:
@@ -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(() => {})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user