Make StillImage react to src changes

This commit is contained in:
Tusooa Zhu 2022-01-17 23:41:11 -05:00
parent fbbeb33f48
commit 96564609f8
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224

View file

@ -57,6 +57,14 @@ const StillImage = {
onError () {
this.imageLoadError && this.imageLoadError()
}
},
watch: {
src () {
this.realSrc = this.src
},
dataSrc () {
this.$el.removeAttribute('data-loaded')
}
}
}