代码拉取完成,页面将自动刷新
<image
v-if="item.isImage || (item.type && item.type === 'image')"
:src="item.thumb || `${prefix}${item.url}`
" :mode="imageMode"
class="uv-upload__wrap__preview__image"
@tap="onPreviewImage(item,index)"
:style="[{
width: $uv.addUnit(width),
height: $uv.addUnit(height)
}]"
/>
类似${prefix}${item.url}
这样 prefix由props传入。 后端有时只会返回后半部分的xxx.jpg