We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1bc0a0 commit 0e25941Copy full SHA for 0e25941
1 file changed
src/store/modules/user.ts
@@ -1,6 +1,6 @@
1
import { defineStore } from 'pinia';
2
import { TOKEN_NAME } from '@/config/global';
3
-import { store, usePermissionStore } from '@/store';
+import { store } from '@/store';
4
5
const InitUserInfo = {
6
roles: [],
@@ -79,12 +79,6 @@ export const useUserStore = defineStore('user', {
79
this.token = '';
80
},
81
82
- persist: {
83
- afterRestore: (ctx) => {
84
- const permissionStore = usePermissionStore();
85
- permissionStore.initRoutes(ctx.store.roles);
86
- },
87
88
});
89
90
export function getUserStore() {
0 commit comments