This commit is contained in:
gaoshuaixing
2022-02-22 16:31:11 +08:00
parent 0dc733cc98
commit 06a4b84f88
2 changed files with 1 additions and 21 deletions

View File

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

View File

@@ -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);
// })
},
}
}