This commit is contained in:
gaoshuaixing
2020-12-24 14:51:19 +08:00
parent d0f513db7d
commit df45fe89d6
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

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