tianxinyu 1 сар өмнө
parent
commit
aa1ca3fab4

+ 7 - 7
src/business/platform/file/attachment/editFile/editor.vue

@@ -69,16 +69,16 @@ export default {
       })
       .then((res) => {
         const [imgObj] = res.variables.data
-        console.log('111111', imgObj, res.variables.data)
+        // console.log('111111', imgObj, res.variables.data)
         if (!imgObj) {
-          // this.imgUrl = ''
-          this.$message.error(
-            '当前用户签名图片不存在请在个人信息维护中上传签字图文!'
-          )
+          this.imgUrl = ''
+          // this.$message.error(
+          //   '当前用户签名图片不存在请在个人信息维护中上传签字图文!'
+          // )
           return false
         }
-        console.log('imgUrl22222222222', imgUrl)
-        const imgUrl = getImage(imgObj.qian_zi_tu_wen_)
+        // console.log('imgUrl22222222222', imgUrl)
+        const imgUrl = imgObj && imgObj.qian_zi_tu_wen_ ? getImage(imgObj.qian_zi_tu_wen_) : ''
         this.imgUrl = imgUrl
       })
     // 调用初始化方法 ,渲染wps