Browse Source

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

zs 1 năm trước cách đây
mục cha
commit
38b40875f2
1 tập tin đã thay đổi với 6 bổ sung3 xóa
  1. 6 3
      src/layout/Sidebar.vue

+ 6 - 3
src/layout/Sidebar.vue

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