Merge pull request #19 from liupl/fixWxBug

修复选择图片后提示:wx is not define
This commit is contained in:
Yanxi 2018-07-19 21:54:44 +08:00 committed by GitHub
commit 9b589edfb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -387,7 +387,7 @@
}, (e._complete = function (e) {
if (E = !1, O.length > 0) {
var n = O.shift();
wx.getLocalImgData(n)
N.getLocalImgData(n)
}
}, e))) : O.push(e)
},
@ -648,8 +648,8 @@
e.preventDefault(), e.stopPropagation();
var o = n["wx-id"];
if (o || (o = b++, n["wx-id"] = o), R[o]) return;
R[o] = !0, wx.ready(function () {
wx.getLocalImgData({
R[o] = !0, N.ready(function () {
N.getLocalImgData({
localId: t,
success: function (e) {
n.src = e.localData