|
@@ -23,7 +23,9 @@ function createWindow() {
|
|
|
win.maximize();
|
|
|
|
|
|
// 加载 Taro 编译后的 H5 页面
|
|
|
- win.loadFile(path.join(__dirname, './dist/h5/index.html'));
|
|
|
+ // win.loadFile(path.join(__dirname, './dist/h5/index.html'));
|
|
|
+ // 加载外置 H5 页面
|
|
|
+ win.loadFile(path.join(process.cwd(), 'h5/index.html'));
|
|
|
|
|
|
// 页面准备好再显示,防止视觉闪烁
|
|
|
win.once('ready-to-show', () => win.show());
|