<span v-for=”(item, index) in imgLists” :key=”item” >
<image style=”width: 100px; height: 100px;” :src=”psipUtil.gethomePath(item.url)” mode=””></image>
</span>
this.imgLists =JSON.parse(imageLists);
数据库返回imageLists的值:
[{“fileId”:”20241204_634019680939410437.png”,”url”:”/api/file/Image/annex/20241204_634019680939410437.png”,”type”:”附件信息”},{“fileId”:”20241204_634019696953263109.png”,”url”:”/api/file/Image/annex/20241204_634019696953263109.png”,”type”:”附件信息”},{“fileId”:”20241204_634020496085615621.png”,”url”:”/api/file/Image/annex/20241204_634020496085615621.png”,”type”:”附件信息”}]