mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-05 07:41:58 +08:00
✨ Feature: add open devtool option
This commit is contained in:
@@ -23,7 +23,7 @@ import {
|
||||
IpcRendererEvent,
|
||||
remote
|
||||
} from 'electron'
|
||||
import { SHOW_PRIVACY_MESSAGE } from '~/universal/events/constants'
|
||||
import { SHOW_PRIVACY_MESSAGE, OPEN_DEVTOOLS } from '~/universal/events/constants'
|
||||
@Component({
|
||||
name: 'mini-page',
|
||||
mixins: [mixin]
|
||||
@@ -190,6 +190,12 @@ export default class extends Vue {
|
||||
remote.app.exit(0)
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '打开调试器',
|
||||
click () {
|
||||
ipcRenderer.send(OPEN_DEVTOOLS)
|
||||
}
|
||||
},
|
||||
{
|
||||
role: 'quit',
|
||||
label: '退出'
|
||||
|
||||
Reference in New Issue
Block a user