提交 06c97d74 编写于 作者: fxy060608's avatar fxy060608

feat(app-plus): export global.uni

上级 d0a4dcbc
......@@ -44,7 +44,7 @@ canIUses.forEach(canIUseApi => {
let uni = {}
if (typeof Proxy !== 'undefined') {
if (typeof Proxy !== 'undefined' && __PLATFORM__ !== 'app-plus') {
uni = new Proxy({}, {
get (target, name) {
if (name === 'upx2px') {
......@@ -99,6 +99,7 @@ if (typeof Proxy !== 'undefined') {
if (__PLATFORM__ === 'app-plus') {
if (typeof global !== 'undefined') {
global.uni = uni
global.UniEmitter = eventApi
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册