修改测试bug

This commit is contained in:
guanj
2026-01-06 11:35:11 +08:00
parent d25f16bcc7
commit 5d3d16f8ec
12 changed files with 497 additions and 442 deletions

View File

@@ -21,8 +21,8 @@
<el-image
:hide-on-click-modal="true"
:preview-teleported="true"
:preview-src-list="[fieldValue]"
:src="fieldValue.length > 100 ? fieldValue : getUrl(fieldValue)"
:preview-src-list="[imgList[fieldValue]]"
:src="fieldValue.length > 100 ? fieldValue : getUrl(fieldValue) ? imgList[fieldValue] : ''"
></el-image>
</div>
@@ -226,10 +226,12 @@ const handlerCommand = (item: OptButton) => {
break
}
}
const imgList: any = ref({})
const getUrl = (url: string) => {
getFileUrl({ filePath: url }).then(res => {
return res.data
imgList.value[url] = res.data
})
return true
}
</script>