fix: path err
parent
9056bdc487
commit
66a6262aec
|
@ -1,5 +1,6 @@
|
||||||
import { ipcRenderer, shell } from 'electron'
|
import { ipcRenderer, shell } from 'electron'
|
||||||
import lodash from 'lodash'
|
import lodash from 'lodash'
|
||||||
|
import path from 'node:path'
|
||||||
|
|
||||||
let inited = false
|
let inited = false
|
||||||
let apiObj = null
|
let apiObj = null
|
||||||
|
@ -31,7 +32,7 @@ export function apiInit (app) {
|
||||||
await shell.openExternal(href)
|
await shell.openExternal(href)
|
||||||
},
|
},
|
||||||
openPath (file) {
|
openPath (file) {
|
||||||
shell.openPath(file)
|
shell.openPath(path.resolve(file))
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue