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);