diff --git a/packages/uni-mp-weixin/dist/index.js b/packages/uni-mp-weixin/dist/index.js index 82f12fa5794d97cc3d08a51c69fbce825384dd6f..d83a2c462c10d9690b0af52936649ca789a33d3f 100644 --- a/packages/uni-mp-weixin/dist/index.js +++ b/packages/uni-mp-weixin/dist/index.js @@ -589,7 +589,13 @@ function createApp (vm) { }); const appOptions = { - onLaunch (args) { + onLaunch (args) { + { + if (!wx.canIUse('nextTick')) { // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断 + console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上'); + } + } + this.$vm = vm; this.$vm._isMounted = true; diff --git a/packages/uni-mp-weixin/package.json b/packages/uni-mp-weixin/package.json index f8973c9875d19d421ffd6bbf707d409642ab936b..678be06e1f0f3568a8d01819d9c35c07cf62a553 100644 --- a/packages/uni-mp-weixin/package.json +++ b/packages/uni-mp-weixin/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-weixin", - "version": "0.0.924", + "version": "0.0.925", "description": "uni-app mp-weixin", "main": "dist/index.js", "scripts": { diff --git a/src/core/runtime/wrapper/create-app.js b/src/core/runtime/wrapper/create-app.js index 0f44c4e48948fda0e8bcc1c549820be27dc7b9a4..f81792ea309652a2668503fa79563c5259203028 100644 --- a/src/core/runtime/wrapper/create-app.js +++ b/src/core/runtime/wrapper/create-app.js @@ -40,7 +40,13 @@ export function createApp (vm) { }) const appOptions = { - onLaunch (args) { + onLaunch (args) { + if (__PLATFORM__ === 'mp-weixin') { + if (!wx.canIUse('nextTick')) { // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断 + console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上') + } + } + this.$vm = vm this.$vm._isMounted = true