Parcourir la source

[Fix 0000] 修复刷新后定向错误的问题

houzekong il y a 18 heures
Parent
commit
a3bf8eb7b8
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/store/modules/user.ts

+ 4 - 0
src/store/modules/user.ts

@@ -264,6 +264,10 @@ export const useUserStore = defineStore({
           userInfo.roles = [];
           this.setRoleList([]);
         }
+
+        // 省局项目暂时不需要读取用户的首页配置
+        userInfo.homePath = PageEnum.BASE_HOME;
+
         this.setUserInfo(userInfo);
       }
       /**