Browse Source

Merge branch 'one' of http://git.cc-lotus.info/pointToNetwork/web-admin into one

zs 1 year ago
parent
commit
38b40875f2
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/layout/Sidebar.vue

+ 6 - 3
src/layout/Sidebar.vue

@@ -45,6 +45,7 @@ export default {
       if (mode === 'all') {
       if (mode === 'all') {
         await this.getAllMenu();
         await this.getAllMenu();
         if (this.$dev_env) this.items.unshift(...devMenu);
         if (this.$dev_env) this.items.unshift(...devMenu);
+        else if (_.get(this.user, 'role.code') === 'sadmin') this.items.unshift(...devMenu);
       } else await this.getUserMenu();
       } else await this.getUserMenu();
     },
     },
     async getAllMenu() {
     async getAllMenu() {
@@ -90,13 +91,15 @@ export default {
   bottom: 0;
   bottom: 0;
   overflow-y: scroll;
   overflow-y: scroll;
 }
 }
+
 .sidebar::-webkit-scrollbar {
 .sidebar::-webkit-scrollbar {
   width: 0;
   width: 0;
 }
 }
+
 .sidebar-el-menu:not(.el-menu--collapse) {
 .sidebar-el-menu:not(.el-menu--collapse) {
   width: 200px;
   width: 200px;
 }
 }
-.sidebar > ul {
+
+.sidebar>ul {
   height: 100%;
   height: 100%;
-}
-</style>
+}</style>