gaoshuaixing 3 年之前
父節點
當前提交
06a4b84f88
共有 2 個文件被更改,包括 1 次插入21 次删除
  1. 0 6
      frontend/src/layouts/Menu.vue
  2. 1 15
      frontend/src/views/base/system/Index.vue

+ 0 - 6
frontend/src/layouts/Menu.vue

@@ -96,12 +96,6 @@ export default {
           pageName: 'BaseSystemIndex',
           params: {}
         },
-        'menu_800' : {
-          icon: 'profile',
-          title: '快捷键',
-          pageName: 'BaseShortcutIndex',
-          params: {}
-        },
         'menu_900' : {
           icon: 'profile',
           title: '测试',

+ 1 - 15
frontend/src/views/base/system/Index.vue

@@ -35,29 +35,15 @@ export default {
   },
   methods: {
     init () {
+      // todo .....
       const self = this;
-      // this.$ipc.on(ipcApiRoute.autoLaunch, (event, result) => {
-      //   console.log('[ipcRenderer] [autoLaunch] result:', result)
-      //   this.autoLaunchChecked = result.status;
-      // })
-      // this.$ipc.send(ipcApiRoute.autoLaunch, 'check');
       self.$ipcCall(ipcApiRoute.autoLaunch, 'check').then(result => {
         console.log('[ipcRenderer] [autoLaunch] result:', result)
         this.autoLaunchChecked = result.status;
-        console.log('[ipcRenderer] [autoLaunch] result2:', self.autoLaunchChecked)
       })      
     },
     autoLaunchChange (checkStatus) {
       console.log('[ipcRenderer] [autoLaunch] self.autoLaunchChecked:', this.autoLaunchChecked)
-      // if (checkStatus) {
-      //   this.$ipc.send(ipcApiRoute.autoLaunch, 'close');
-      // } else {
-      //   this.$ipc.send(ipcApiRoute.autoLaunch, 'open');       
-      // }
-      // self.$ipcCall(ipcApiRoute.selectFolder, '').then(r => {
-      //   self.dir_path = r;
-      //   self.$message.info(r);
-      // })
     },
   }
 }