You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modify the code in "else logic" in line 45 of "electron/main.ts" to "win.loadFile('dist/index.html')."
In the electron document, the first parameter of "win.loadFile" is described as: it should be a path to an HTML file relative to the root of your application.
Here you need to point the path to the HTML file built by vite.
Modify the code in "else logic" in line 45 of "electron/main.ts" to "win.loadFile('dist/index.html')."
In the electron document, the first parameter of "win.loadFile" is described as: it should be a path to an HTML file relative to the root of your application.
Here you need to point the path to the HTML file built by vite.
将“electron/main.ts”中,第45行“else逻辑”中的代码修改为“win.loadFile('dist/index.html')”。
electron文档中,对“win.loadFile”的第一个参数的描述为:必须是一个相对于你的应用程序根目录的HTML文件路径。
这里需要将路径指向由vite构建后的HTML文件。
The text was updated successfully, but these errors were encountered: