yangjie #22

Merged
yangqiang merged 99 commits from yangjie into master 2024-10-22 16:11:46 +08:00
1 changed files with 7 additions and 1 deletions
Showing only changes of commit 027622f544 - Show all commits

View File

@ -298,7 +298,13 @@ app.on('ready', () => {
width: config.width,
height: config.height,
})
if (env === 'development') {
// 开发
child.loadURL(config.url)
} else {
// 测试 | 生产
child.loadURL(`file://${path.join(__dirname, './dist/index.html')}#/${config.key}`);
}
childWindow[config.key] = child
child.once('ready-to-show', () => {
childWindow[config.key].show()