提交 d9891acd 编写于 作者: tingrun919's avatar tingrun919 提交者: 花裤衩

修改npm install时的错误

上级 d7428171
......@@ -20,9 +20,9 @@ require('electron-debug')({ showDevTools: true })
// Install `vue-devtools`
require('electron').app.on('ready', () => {
let installExtension = require('electron-devtools-installer')
const installExtension = require('electron-devtools-installer')
installExtension.default(installExtension.VUEJS_DEVTOOLS)
.then(() => {})
.then(() => ({}))
.catch(err => {
console.log('Unable to install `vue-devtools`: \n', err)
})
......
......@@ -7,7 +7,7 @@ const winURL = process.env.NODE_ENV === 'development'
? `http://localhost:${require('../../../config').port}`
: `file://${__dirname}/index.html`
function createWindow () {
function createWindow() {
/**
* Initial window options
*/
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册