ZaiZai hai 1 ano
pai
achega
330feb13ad
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/main/index.js

+ 3 - 1
src/main/index.js

@@ -83,9 +83,11 @@ app.whenReady().then(() => {
         event.preventDefault()
         if (process.platform === 'win32') {
             process.argv.push(url)
+            const argv = process.argv
+            const filePath = argv[argv.length - 1]
             BrowserWindow.getFocusedWindow().webContents.send('open-file-vue', {
                 data: 'win',
-                argv: process.argv,
+                argv: filePath,
             })
         } else {
             BrowserWindow.getFocusedWindow().webContents.send('open-file-vue', {