wenbobowen 4 年之前
父節點
當前提交
5e27e58a93
共有 1 個文件被更改,包括 2 次插入2 次删除
  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
     }