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

build uni-app-plus,uni-mp-weixin

上级 50ddc172
......@@ -271,6 +271,11 @@ const customize = cached((str) => {
});
function initTriggerEvent (mpInstance) {
{
if (!wx.canIUse('nextTick')) {
return
}
}
const oldTriggerEvent = mpInstance.triggerEvent;
mpInstance.triggerEvent = function (event, ...args) {
return oldTriggerEvent.apply(mpInstance, [customize(event), ...args])
......
{
"name": "@dcloudio/uni-app-plus",
"version": "0.0.217",
"version": "0.0.218",
"description": "uni-app app-plus",
"main": "dist/index.js",
"scripts": {
......
......@@ -298,6 +298,11 @@ const customize = cached((str) => {
});
function initTriggerEvent (mpInstance) {
{
if (!wx.canIUse('nextTick')) {
return
}
}
const oldTriggerEvent = mpInstance.triggerEvent;
mpInstance.triggerEvent = function (event, ...args) {
return oldTriggerEvent.apply(mpInstance, [customize(event), ...args])
......
{
"name": "@dcloudio/uni-mp-weixin",
"version": "0.0.936",
"version": "0.0.937",
"description": "uni-app mp-weixin",
"main": "dist/index.js",
"scripts": {
......
......@@ -13,6 +13,11 @@ const customize = cached((str) => {
})
function initTriggerEvent (mpInstance) {
if (__PLATFORM__ === 'mp-weixin' || __PLATFORM__ === 'app-plus') {
if (!wx.canIUse('nextTick')) {
return
}
}
const oldTriggerEvent = mpInstance.triggerEvent
mpInstance.triggerEvent = function (event, ...args) {
return oldTriggerEvent.apply(mpInstance, [customize(event), ...args])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册