Przeglądaj źródła

improve: 用户权限首页

From-wh 2 lat temu
rodzic
commit
ee62e1f9b8

+ 2 - 2
template/admin/src/pages/account/login/index.vue

@@ -239,10 +239,10 @@ export default {
             this.checkSocket();
           } catch (e) {}
 
-          return this.$router.replace({ path: this.$routeProStr + '/home/' || this.$routeProStr + '/' });
+          return this.$router.replace({ path: res.data.menus[0].path || this.$routeProStr + '/' });
         })
         .catch((res) => {
-          msg()
+          msg();
           let data = res === undefined ? {} : res;
           this.$Message.error(data.msg || '登录失败');
           this.login_captcha = res.data.login_captcha;

+ 4 - 4
template/admin/src/pages/setting/systemRole/index.vue

@@ -288,12 +288,12 @@ export default {
           this.menusList = data.menus;
           this.menusList.map((item, index) => {
             if (item.title === '主页') {
-              item.checked = true;
-              item.disableCheckbox = true;
+              // item.checked = true;
+              // item.disableCheckbox = true;
               if (item.children.length) {
                 item.children.map((v) => {
-                  v.checked = true;
-                  v.disableCheckbox = true;
+                  // v.checked = true;
+                  // v.disableCheckbox = true;
                 });
               }
             }

+ 1 - 1
template/admin/src/router/modules/index.js

@@ -42,7 +42,7 @@ const meta = {
 const pre = 'home_';
 
 export default {
-  path: routePre + '/',
+  path: routePre + '/home',
   name: 'home',
   header: 'home',
   redirect: {