Commit f0ad6f13 authored by liwei's avatar liwei

修改了编辑个人信息的图片bug

parent 10de5790
......@@ -357,10 +357,12 @@ import {getOssUrl, getUploadType} from "../../api/article";
success:(res1) =>{
console.log('上传响应:', res1);
this.updateImage(type,response.data.ossInfoId);
uni.$off('Cropper');// 移除事件监听 否则会叠加调用
},
fail(err) {
fail:(err) =>{
console.error('上传失败:', err); // 输出错误信息
wx.showToast({ title: '上传失败,请重试!', icon: 'none' });
uni.$off('Cropper');// 移除事件监听
}
});
},
......@@ -381,6 +383,7 @@ import {getOssUrl, getUploadType} from "../../api/article";
success: (uploadFileRes) => {
let res = JSON.parse(uploadFileRes.data)
this.updateImage(type,res.data.businessId);
uni.$off('Cropper');// 移除事件监听
},
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment