Browse Source

Merge branch 'feature_20250722_企业微信图片上传失败原因测试' into uat(dev)

zhujindu 4 months ago
parent
commit
4cca35ca34
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/components/uploadVNormal.vue

+ 6 - 1
src/components/uploadVNormal.vue

@@ -306,11 +306,16 @@ export default {
                   }
                   wx.uploadImage({
                     localId: localIds, // 需要上传的图片的本地ID,由chooseImage接口获得
-                    isShowProgressTips: 1, // 默认为1,显示进度提示
+                    isShowProgressTips: 0, // 默认为1,显示进度提示
                     success: function (res) {
                       that.mediaId = res.serverId;
                       that.uploadImagev(addressesRemark);
                     },
+                    fail: (err) => {
+                      console.log(err.errMsg);
+                      console.log(err.errCode);
+                      that.$toast('图片上传失败');
+                    },
                   });
                 },
               });