File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import { setRouteChange } from "@/composables/useRouteListener"
22import { useTitle } from "@/composables/useTitle"
33import routeSettings from "@/config/route"
44import isWhiteList from "@/config/white-list"
5- import { usePermissionStoreOutside } from "@/pinia/stores/permission"
6- import { useUserStoreOutside } from "@/pinia/stores/user"
5+ import { usePermissionStore } from "@/pinia/stores/permission"
6+ import { useUserStore } from "@/pinia/stores/user"
77import { router } from "@/router"
88import { getToken } from "@/utils/cache/cookies"
99import { ElMessage } from "element-plus"
@@ -12,11 +12,11 @@ import "nprogress/nprogress.css"
1212
1313NProgress . configure ( { showSpinner : false } )
1414const { setTitle } = useTitle ( )
15- const userStore = useUserStoreOutside ( )
16- const permissionStore = usePermissionStoreOutside ( )
1715
1816router . beforeEach ( async ( to , _from , next ) => {
1917 NProgress . start ( )
18+ const userStore = useUserStore ( )
19+ const permissionStore = usePermissionStore ( )
2020 // 如果没有登陆
2121 if ( ! getToken ( ) ) {
2222 // 如果在免登录的白名单中,则直接进入
You can’t perform that action at this time.
0 commit comments