功能补充

This commit is contained in:
yanghang
2025-06-19 20:18:00 +08:00
parent 8104c5fce8
commit f0015d5ea4
3 changed files with 109 additions and 7 deletions
@@ -15,14 +15,15 @@
},
data() {
return {
imgUrlShow:''
imgUrlShow:'',
watching:false
};
},
watch: {
imgId: {
handler(newval, oldval) {
if (newval) {
this.getPreviewUrlBlob(newval);
if (newval && this.watching) {
this.getPreviewUrlBlob(newval);
}
},
immediate: true,
@@ -55,6 +56,7 @@
if (this.imgId) {
this.getPreviewUrlBlob(this.imgId);
}
this.watching = true
},
beforeDestroy() {
URL.revokeObjectURL(this.imgUrlShow);