scene: ios Wechat
A hyperlink whose picture starts with http
opens the image rendering blank data in ios (Wechat) for the first time. The image will not show normal until it is refreshed again
.
after testing, there is no such problem in android
html
<div class="bugImg" v-if="bugDetail">
<img
v-for="(imgItem,index) in bugDetail.disposefileList"
:key="imgItem.index"
:src="imgItem"
alt
@click="imagePreview(index)"
>
</div>
js
export default {
name: "BugDetail",
data() {
return {
bugId: "",
bugDetail: {},
};
},
created() {
this.bugId = this.$route.query.bugId;
},
mounted() {
this.getBugDetail();
},
methods: {
getBugDetail() {
let data = {
id: this.bugId
};
API.getBugById(data)
.then(res => {
if (res.errCode == 0) {
this.bugDetail = res.data;
} else {
}
})
.catch(error => {});
},
},
components: {
}
};