修改测试bug
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user