提交 30e70264 编写于 作者: fxy060608's avatar fxy060608

fix(mp): proxy

上级 c00a52f3
......@@ -45,7 +45,7 @@ let uni = {}
if (typeof Proxy !== 'undefined' && __PLATFORM__ !== 'app-plus') {
uni = new Proxy({}, {
get (target, name) {
if (target[name]) {
if (hasOwn(target, name)) {
return target[name]
}
if (baseApi[name]) {
......@@ -71,7 +71,7 @@ if (typeof Proxy !== 'undefined' && __PLATFORM__ !== 'app-plus') {
return promisify(name, wrapper(name, __GLOBAL__[name]))
},
set (target, name, value) {
target[name] = value
target[name] = value
return true
}
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册