mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-06-15 10:01:42 +08:00
path
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user