Feature(custom): optimize i18n and platform funcs

This commit is contained in:
Kuingsmile
2025-08-01 13:38:37 +08:00
parent 15e2f11b69
commit 70396c3e5c
38 changed files with 16 additions and 164 deletions

View File

@@ -438,7 +438,7 @@ async function getBucketList () {
function transPathToUnix (filePath: string | undefined) {
if (!filePath) return ''
return window.electron.sendRpcSync(IRPCActionType.GET_PLATFORM) === 'win32'
return window.electron.platform === 'win32'
? filePath
.split(window.node.path.sep)
.join(window.node.path.posix.sep)