gaoshuaixing 5 years ago
parent
commit
df45fe89d6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/service/example.js
  2. 1 1
      electron/apis/example.js

+ 1 - 1
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;
   }

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