diff --git a/packages/uni-app/dist/app.js b/packages/uni-app/dist/app.js index b8d2940b49f7b41fae427e39338fa53f61b570ee..9205f17cec8af698ebff39728885a43730fa3a35 100644 --- a/packages/uni-app/dist/app.js +++ b/packages/uni-app/dist/app.js @@ -17,10 +17,11 @@ function init() { index = res.findIndex(function (fn) { return fn.toString().includes('onReady'); }); onReadyFn = res[index]; } - res.splice(index, 1); - res.push(onReadyFn); + if (index !== -1) { + res.splice(index, 1); + res.push(onReadyFn); + } } - console.log('Merge mounted:', res); return res; }; }