fix: dynamically setting src error
parent
d970f47b35
commit
7d8068be5e
|
@ -30,6 +30,12 @@ export default {
|
|||
scale: 1,
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
src() {
|
||||
this.isImgExist = true;
|
||||
this.scale = 1;
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.prevChildren = this.$slots.default;
|
||||
this.prevState = { ...this.$data };
|
||||
|
|
Loading…
Reference in New Issue