From df45fe89d6976a09f60e23f73717ffc71fa23771 Mon Sep 17 00:00:00 2001 From: gaoshuaixing Date: Thu, 24 Dec 2020 14:51:19 +0800 Subject: [PATCH] path --- app/service/example.js | 2 +- electron/apis/example.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/service/example.js b/app/service/example.js index 93ce314..1396bfb 100644 --- a/app/service/example.js +++ b/app/service/example.js @@ -6,7 +6,7 @@ class ExampleService extends BaseService { async openLocalDir() { const self = this; - await self.ipcCall('example.openDir', 'a', 'b', 'c'); + await self.ipcCall('example.openDir'); return true; } diff --git a/electron/apis/example.js b/electron/apis/example.js index 110b663..48824f3 100644 --- a/electron/apis/example.js +++ b/electron/apis/example.js @@ -20,7 +20,7 @@ exports.openDir = function (dir = '') { } function getElectronPath (filepath) { - filepath = path.resolve(filepath); + //filepath = path.resolve(filepath); filepath=filepath.replace("resources",""); filepath=filepath.replace("app.asar",""); filepath = path.normalize(filepath);