wenbobowen 4 năm trước cách đây
mục cha
commit
5e27e58a93
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/components/input/normalArea.vue

+ 2 - 2
src/components/input/normalArea.vue

@@ -107,10 +107,10 @@ export default {
   },
   watch: {
     value: {
-      handler(newV, oldV) {
+      async handler(newV, oldV) {
         console.log('new', newV, 'old', oldV)
         // resetImgSrc
-        this.inputValue = this.resetImgSrc(newV)
+        this.inputValue = await this.resetImgSrc(newV)
       },
       immediate: true
     }