Merge pull request #3315 from h3poteto/fix/vue3-devtool

Enable vue3 devtools
This commit is contained in:
AkiraFukushima 2022-04-29 22:30:36 +09:00 committed by GitHub
commit d3cba0cebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -7,17 +7,16 @@
/* eslint-disable */
import installExtension, { VUEJS3_DEVTOOLS } from 'electron-devtools-installer'
// Install `electron-debug` with `devtron`
require('electron-debug')({ showDevTools: true })
// Install `vue-devtools`
require('electron').app.on('ready', () => {
let installExtension = require('electron-devtools-installer')
installExtension.default(installExtension.VUEJS_DEVTOOLS)
.then(() => {})
.catch(err => {
console.log('Unable to install `vue-devtools`: \n', err)
})
installExtension(VUEJS3_DEVTOOLS)
.then(name => console.log(`Added Extension: ${name}`))
.catch(err => console.log('Unable to install `vue-devtools`: \n', err))
})
// Require `main` process to boot app

View File

@ -32,7 +32,7 @@ export default {
})
},
created() {
this.$store.dispatch('App/watchShortcutsEvents')
this.$store.dispatch('App/watchShortcutEvents')
this.$store.dispatch('App/loadPreferences').then(conf => {
this.$i18n.locale = conf.language.language
})