SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.47k stars 1.54k forks source link

Open a new Window and load specific route #993

Open vkiranmaniya opened 4 years ago

vkiranmaniya commented 4 years ago
Multiple Window with the specific route

When the renderer process emits an event, the main process creates a new window and loads a specific route in the window. Emitting and listening to the event are fairly simple as documentation but how to load route from the main process?

vkiranmaniya commented 4 years ago

The Initial window loads url as

const winURL = process.env.NODE_ENV === 'development' ?
    `http://localhost:9080` :
    `file://${__dirname}/index.html`

is there any workaround to load specific route in newly created dialog window?

namila007 commented 4 years ago

check this Window Create