修复若路径存在 # 字符时,软件无法启动的问题(#1461)

This commit is contained in:
lyswhut
2023-07-14 15:01:05 +08:00
parent 54f6255fe4
commit 809752e4ec
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -39,5 +39,6 @@ export const clipboardReadText = (): string => {
export const encodePath = (path: string) => {
// https://github.com/lyswhut/lx-music-desktop/issues/963
return path.replaceAll('%', '%25')
// https://github.com/lyswhut/lx-music-desktop/issues/1461
return path.replaceAll('%', '%25').replaceAll('#', '%23')
}