fix: 修复主题背景图片URL构建逻辑

This commit is contained in:
lyswhut
2026-09-12 20:38:08 +08:00
parent a0e16fc4f9
commit d1fa51c2bb
3 changed files with 3 additions and 16 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export const assertApiSupport = (source: LX.Source): boolean => {
export const buildBgUrl = (originUrl: string, dataPath: string): string => {
return isUrl(originUrl)
? `url(${originUrl})`
: `url(file:///${encodePath(joinPath(dataPath, originUrl).replaceAll('\\', '/'))})`
: `url(${encodePath(joinPath(dataPath, originUrl).replaceAll('\\', '/'))})`
}
export const getThemes = (callback: (themeInfo: LX.ThemeInfo) => void) => {