mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-01 19:48:15 +08:00
parent
d40c42a810
commit
88900d6ed3
@ -3,6 +3,7 @@ import router from '@/router'
|
||||
import useMenuStore from './menu'
|
||||
import useRouteStore from './route'
|
||||
import useSettingsStore from './settings'
|
||||
import useTabbarStore from './tabbar'
|
||||
|
||||
const useUserStore = defineStore(
|
||||
// 唯一ID
|
||||
@ -11,6 +12,7 @@ const useUserStore = defineStore(
|
||||
const settingsStore = useSettingsStore()
|
||||
const routeStore = useRouteStore()
|
||||
const menuStore = useMenuStore()
|
||||
const tabbarStore = useTabbarStore()
|
||||
|
||||
const account = ref(localStorage.account ?? '')
|
||||
const token = ref(localStorage.token ?? '')
|
||||
@ -47,6 +49,7 @@ const useUserStore = defineStore(
|
||||
permissions.value = []
|
||||
routeStore.removeRoutes()
|
||||
menuStore.setActived(0)
|
||||
settingsStore.settings.tabbar.enable && tabbarStore.clean()
|
||||
router.push({
|
||||
name: 'login',
|
||||
query: {
|
||||
|
Loading…
Reference in New Issue
Block a user