for example, I define an empty object in the initialization data of a page
data () {
return {
community: {},
}
},
and my tag is written
<img class="uploadImageDiv" mode="aspectFill" :src="community.avatarUrl"/>
when I first assigned a value to community
this.community.avatarUrl = "XXXXX.png"
the reasonable img tag will render immediately, right? But it didn"t. Why?
maybe it has something to do with me defining an object? Because if I define an avatarUrl="XXXXX.png" directly in data and can render directly