升级electron egg脚手架版本
This commit is contained in:
@@ -12,7 +12,7 @@ module.exports = () => {
|
||||
singleLock: true,
|
||||
windowsOption: {
|
||||
title: 'NPQS9100-自动检测平台',
|
||||
menuBarVisible: false,
|
||||
menuBarVisible: true, // 显示菜单栏,方便查看日志
|
||||
width: 1920,
|
||||
height: 1000,
|
||||
minWidth: 1024,
|
||||
@@ -24,7 +24,7 @@ module.exports = () => {
|
||||
//preload: path.join(getElectronDir(), 'preload', 'bridge.js'),
|
||||
},
|
||||
frame: true,
|
||||
show: true,
|
||||
show: false, // 初始不显示,等待服务启动完成后再显示
|
||||
icon: path.join(getBaseDir(), 'public', 'images', 'logo-32.png'),
|
||||
},
|
||||
logger: {
|
||||
@@ -66,6 +66,20 @@ module.exports = () => {
|
||||
mainServer: {
|
||||
indexPath: '/public/dist/index.html',
|
||||
channelSeparator: '/',
|
||||
},
|
||||
// MySQL配置
|
||||
mysql: {
|
||||
enable: true,
|
||||
autoStart: true, // 应用启动时自动启动MySQL
|
||||
path: path.join(getBaseDir(), 'mysql'),
|
||||
connection: {
|
||||
host: 'localhost',
|
||||
port: 3306,
|
||||
user: 'root',
|
||||
password: 'njcnpqs',
|
||||
database: 'npqs9100_db',
|
||||
charset: 'utf8mb4'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user