wenbobowen 4 سال پیش
والد
کامیت
d85ae8c782
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/components/input/normalArea.vue

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

@@ -110,7 +110,7 @@ export default {
       async handler(newV, oldV) {
         console.log('new', newV, 'old', oldV)
         // resetImgSrc
-        this.inputValue = await this.resetImgSrc(newV)
+        this.resetImgSrc(newV)
       },
       immediate: true
     }
@@ -134,7 +134,7 @@ export default {
           newStr = newStr.replace(src[1], newImgUrl)
           console.log('newStr', newStr)
           console.log('src[1]',src[1])
-          return newStr
+          this.inputValue = newStr
         }
       })
       console.log('newStr', newStr)