Merge pull request #9593 from dataease/pr@dev-v2@fix_template-name

fix(工作台): 修复模版管理创建可视化资源可能因为url路径编码导致无法创建问题
This commit is contained in:
王嘉豪
2024-05-10 17:21:11 +08:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -60,7 +60,9 @@ const classBackground = computed(() => {
return {
width: props.width + 'px',
height: props.width * 0.58 + 'px',
background: `url(${imgUrlTrans(thumbnailUrl.value)}) no-repeat`,
background: `url(${imgUrlTrans(thumbnailUrl.value)
.replace(/\(/g, '%28')
.replace(/\)/g, '%29')}) no-repeat`,
'background-size': `100% 100%`
}
})