fix: path err

pull/401/head
starknt 2024-11-22 03:34:22 +08:00
parent 9056bdc487
commit 66a6262aec
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import { ipcRenderer, shell } from 'electron'
import lodash from 'lodash'
import path from 'node:path'
let inited = false
let apiObj = null
@ -31,7 +32,7 @@ export function apiInit (app) {
await shell.openExternal(href)
},
openPath (file) {
shell.openPath(file)
shell.openPath(path.resolve(file))
},
},
}