fix(嵌入式): 上传自定义字体,在添加了 content-path 路径的情况下,div 嵌入数据大屏会提示字体请求不到

This commit is contained in:
dataeaseShu
2024-12-02 09:48:13 +08:00
parent cfdde72ec1
commit 7b6a1ce67e

View File

@@ -212,7 +212,9 @@ export const useAppearanceStore = defineStore('appearanceStore', {
defaultFont().then(res => {
const [font] = res || []
setDefaultFont(
`${basePath}/typeface/download/${font?.fileTransName}`,
`${embeddedStore.baseUrl ? embeddedStore.baseUrl : basePath}/typeface/download/${
font?.fileTransName
}`,
font?.name,
font?.fileTransName
)