修复自定义主题背景路径存在空格时无法显示的问题

This commit is contained in:
lyswhut
2022-11-16 19:18:59 +08:00
parent 7daa626d55
commit a6fd41900f
6 changed files with 12 additions and 6 deletions
+1 -2
View File
@@ -177,8 +177,7 @@ export const sortInsert = (arr: Array<{ num: number, data: any }>, data: { num:
}
export const encodePath = (path: string) => {
// https://github.com/lyswhut/lx-music-desktop/issues/963
return path.replaceAll('%', '%25')
return encodeURI(path.replaceAll('\\', '/'))
}