modify about.js error

This commit is contained in:
Hunlongyu
2019-11-27 14:38:23 +08:00
parent eae5d78de1
commit 03a36adf42
2 changed files with 14 additions and 4 deletions

View File

@@ -2,8 +2,7 @@
import { app, protocol, BrowserWindow } from 'electron'
import {
createProtocol,
installVueDevtools
createProtocol
} from 'vue-cli-plugin-electron-builder/lib'
const isDevelopment = process.env.NODE_ENV !== 'production'
@@ -17,8 +16,8 @@ protocol.registerSchemesAsPrivileged([{ scheme: 'app', privileges: { secure: tru
function createWindow () {
// Create the browser window.
win = new BrowserWindow({
width: 800,
height: 600,
width: 1024,
height: 800,
webPreferences: {
nodeIntegration: true
}

11
vue.config.js Normal file
View File

@@ -0,0 +1,11 @@
module.exports = {
pluginOptions: {
electronBuilder: {
chainWebpackRendererProcess: config => {
if (process.env.NODE_ENV === 'development') {
config.plugins.delete('prefetch')
}
}
}
}
}