yb 10 miesięcy temu
rodzic
commit
ef4e880a05
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/store/modules/user.ts

+ 3 - 3
src/store/modules/user.ts

@@ -54,9 +54,9 @@ export const useUserStore = defineStore('admin-user', {
         return null
       }
       let userInfo = wsCache.get(CACHE_KEY.USER)
-      if (!userInfo) {
-        userInfo = await getInfo()
-      }
+      // if (!userInfo) {
+      userInfo = await getInfo()
+      // }
       this.permissions = userInfo.permissions
       this.roles = userInfo.roles
       this.user = userInfo.user