Browse Source

refactor🎨 菜单修改添加apis

wenjianzhang 4 years ago
parent
commit
8b7ecef811
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/admin/sys-menu/index.vue

+ 2 - 2
src/views/admin/sys-menu/index.vue

@@ -286,6 +286,7 @@ export default {
   },
   created() {
     this.getList()
+
     this.getApiList()
     this.getDicts('sys_show_hide').then(response => {
       this.visibleOptions = response.data
@@ -402,6 +403,7 @@ export default {
         menuName: undefined,
         icon: undefined,
         menuType: 'M',
+        apis: [],
         sort: 0,
         action: this.form.menuType === 'A' ? this.form.action : '',
         isFrame: '1',
@@ -440,8 +442,6 @@ export default {
         l.push(element.id)
       }
       this.form.apis = l
-      console.log('-------apis')
-      console.log(this.form.apis)
     },
     /** 提交按钮 */
     submitForm: function() {