未验证 提交 d316869c 编写于 作者: J Joson 提交者: GitHub

Update image-cropper.js

修复src为 ‘’ 时,内存泄漏的bug
上级 53a15a4b
......@@ -468,6 +468,10 @@ Component({
//发现是手动赋值直接返回,交给watch处理
return;
}
// getImageInfo接口传入 src: '' 会导致内存泄漏
if (!this.data.imgSrc) return;
wx.getImageInfo({
src: this.data.imgSrc,
success: (res) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册