Skip to content

Commit d9891ac

Browse files
tingrun919PanJiaChen
authored andcommitted
修改npm install时的错误
1 parent d742817 commit d9891ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/src/main/index.dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ require('electron-debug')({ showDevTools: true })
2020

2121
// Install `vue-devtools`
2222
require('electron').app.on('ready', () => {
23-
let installExtension = require('electron-devtools-installer')
23+
const installExtension = require('electron-devtools-installer')
2424
installExtension.default(installExtension.VUEJS_DEVTOOLS)
25-
.then(() => {})
25+
.then(() => ({}))
2626
.catch(err => {
2727
console.log('Unable to install `vue-devtools`: \n', err)
2828
})

app/src/main/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const winURL = process.env.NODE_ENV === 'development'
77
? `http://localhost:${require('../../../config').port}`
88
: `file://${__dirname}/index.html`
99

10-
function createWindow () {
10+
function createWindow() {
1111
/**
1212
* Initial window options
1313
*/

0 commit comments

Comments
 (0)