xiongzhu 3 years ago
parent
commit
4bd1384555
2 changed files with 2 additions and 14 deletions
  1. 1 7
      src/main/vue/src/views/MenuAuthority.vue
  2. 1 7
      src/main/vue/src/views/Menus.vue

+ 1 - 7
src/main/vue/src/views/MenuAuthority.vue

@@ -81,13 +81,7 @@ export default {
                 })
                 .then(res => {
                     this.authorities = res.filter(
-                        i =>
-                            i.name === 'ROLE_ADMIN' ||
-                            i.name === 'ROLE_OPERATOR' ||
-                            i.name === 'ROLE_NEWS' ||
-                            i.name === 'ROLE_COMPANY' ||
-                            i.name === 'ROLE_MESSAGE' ||
-                            i.name === 'ROLE_SHOWROOM'
+                        i => i.name !== 'ROLE_USER' && i.name !== 'ROLE_MINTER' && i.name !== 'ROLE_DEV'
                     );
                     if (!this.authority && res[0]) {
                         this.authority = res[0].name;

+ 1 - 7
src/main/vue/src/views/Menus.vue

@@ -89,13 +89,7 @@ export default {
         this.getData();
         this.$http.get('/authority/all').then(res => {
             this.authorities = res.filter(
-                i =>
-                    i.name === 'ROLE_ADMIN' ||
-                    i.name === 'ROLE_OPERATOR' ||
-                    i.name === 'ROLE_NEWS' ||
-                    i.name === 'ROLE_COMPANY' ||
-                    i.name === 'ROLE_MESSAGE' || 
-                    i.name === 'ROLE_SHOWROOM'
+                i => i.name !== 'ROLE_USER' && i.name !== 'ROLE_MINTER' && i.name !== 'ROLE_DEV'
             );
         });
     },