Browse Source

修改bug

695593266@qq.com 10 months ago
parent
commit
86b82a9a88
3 changed files with 3 additions and 3 deletions
  1. 1 1
      qiankun_config/store.js
  2. 1 1
      src/views/login/index.vue
  3. 1 1
      src/views/singleLogin/index.vue

+ 1 - 1
qiankun_config/store.js

@@ -19,6 +19,6 @@ export default function (state) {
     store.commit('user/setUserInfo', state.user.info);
   }
   if (state.user?.authorityDept) {
-    // store.dispatch('user/getCurrentUserAuthorityDept');
+    store.dispatch('user/getCurrentUserAuthorityDept');
   }
 }

+ 1 - 1
src/views/login/index.vue

@@ -191,7 +191,7 @@
               this.$store.commit('user/setUserInfo', res.data);
               this.loading = false;
               this.$message.success(res.message);
-              // this.$store.dispatch('user/getCurrentUserAuthorityDept');
+              this.$store.dispatch('user/getCurrentUserAuthorityDept');
               this.goHome();
             })
             .catch((e) => {

+ 1 - 1
src/views/singleLogin/index.vue

@@ -229,7 +229,7 @@
               this.$store.commit('user/setUserInfo', res.data);
               this.loading = false;
               this.$message.success(res.message);
-              // this.$store.dispatch('user/getCurrentUserAuthorityDept');
+              this.$store.dispatch('user/getCurrentUserAuthorityDept');
               this.goHome();
             })
             .catch((e) => {