洪海涛 4 жил өмнө
parent
commit
494cb0c5de

+ 1 - 0
src/components/input/normalArea.vue

@@ -125,6 +125,7 @@ export default {
   },
   methods: {
     async resetImgSrc(str) {
+      if (!str) return
       let newStr = str
       const imgReg = /<img.*?(?:>|\/>)/gi
       const srcReg = /src=[\'\"]?([^\'\"]*)[\'\"]?/i

+ 1 - 0
src/components/input/textArea.vue

@@ -148,6 +148,7 @@ export default {
   },
   methods: {
     async resetImgSrc(str) {
+      if (!str) return
       let newStr = str
       const imgReg = /<img.*?(?:>|\/>)/gi
       const srcReg = /src=[\'\"]?([^\'\"]*)[\'\"]?/i