fix: dynamically setting src error

This commit is contained in:
wangxueliang 2019-04-25 20:39:00 +08:00
parent d970f47b35
commit 7d8068be5e

View File

@ -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 };