Enable vue3 devtools

This commit is contained in:
AkiraFukushima 2022-04-29 22:22:50 +09:00
parent 5a429eb88e
commit a67be5be4a
No known key found for this signature in database
GPG Key ID: B6E51BAC4DE1A957
2 changed files with 6 additions and 7 deletions

View File

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

View File

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