王小猿

Results 3 comments of 王小猿

用electron-vue编写,npm run dev运行正常,electron-builder 打包后,第一个窗口显示正常,当在第一个窗口点击开启第二个窗口时,第二个窗口空白,但是将 `newWindow.loadURL(winURL+'/#/newpage');` 里的 winURL+'/#/newpage'替换成winURL,可以正常显示winURL的内容 好久都没找到原因,下面是main主线程的代码 ``` import { ipcMain,app, BrowserWindow } from 'electron' /** * Set `__static` path to static files in production * [url=https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-static-assets.html]https://simulatedgreg.gitbooks ... .html[/url]...

@Gtanxingwen 只用一个窗口,改变路由,暂时是这样解决的

@surmon-china ![_20180308193057](https://user-images.githubusercontent.com/14949052/37149090-b5befb3a-2307-11e8-8b6b-afb44912f67f.png) 错误代码如上 代码仿照examples里写的,只不过向上封装了好几层,形成一个组件,在一个页面里引用好几次这个组件