Skip to content

Commit 7d8068b

Browse files
committed
fix: dynamically setting src error
1 parent d970f47 commit 7d8068b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/avatar/Avatar.jsx

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ export default {
3030
scale: 1,
3131
};
3232
},
33+
watch: {
34+
src() {
35+
this.isImgExist = true;
36+
this.scale = 1;
37+
},
38+
},
3339
mounted() {
3440
this.prevChildren = this.$slots.default;
3541
this.prevState = { ...this.$data };

0 commit comments

Comments
 (0)