mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-11 18:50:11 +08:00
✨ Feature: add open devtool option
This commit is contained in:
@@ -159,7 +159,8 @@ import {
|
||||
import mixin from '@/utils/mixin'
|
||||
import InputBoxDialog from '@/components/InputBoxDialog.vue'
|
||||
import {
|
||||
SHOW_PRIVACY_MESSAGE
|
||||
SHOW_PRIVACY_MESSAGE,
|
||||
OPEN_DEVTOOLS
|
||||
} from '~/universal/events/constants'
|
||||
import { IConfig } from 'picgo/dist/src/types/index'
|
||||
const { Menu, dialog, BrowserWindow } = remote
|
||||
@@ -276,6 +277,12 @@ export default class extends Vue {
|
||||
click () {
|
||||
ipcRenderer.send(SHOW_PRIVACY_MESSAGE)
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '打开调试器',
|
||||
click () {
|
||||
ipcRenderer.send(OPEN_DEVTOOLS)
|
||||
}
|
||||
}
|
||||
]
|
||||
this.menu = Menu.buildFromTemplate(template)
|
||||
|
||||
Reference in New Issue
Block a user