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

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
+5
View File
@@ -36,3 +36,8 @@ export const clipboardReadText = (): string => {
return clipboard.readText()
}
export const encodePath = (path: string) => {
// https://github.com/lyswhut/lx-music-desktop/issues/963
return path.replaceAll('%', '%25')
}