url is not mounted correctly in LoadURL in Electron.
I'm trying to load a Vuejs route by loading Electron.
But they are having difficulties with the bars at the end of the wheel, as the bars are loading differently.
main.js
win = new BrowserWindow( {
width: 1000,
height: 830,
// resizable: false,
icon: __dirname + '/favicon.ico',
// frame: false,
// titleBarStyle: "hidden",
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
}
} );
win.loadURL( path.join(__dirname, '/dist#/vendas/pdv'
)) ;
Result
file:///C:/Users/Marce/royaldesk/dist#\vendas\pdv
Should be like this
file:///C:/Users/Marce/royaldesk/dist#/vendas/pdv
The slashes at the end of the link are reversed