From d394c21cdbc584f2b65b3531dde190074db363b2 Mon Sep 17 00:00:00 2001 From: qiang Date: Fri, 18 Nov 2022 11:09:51 +0800 Subject: [PATCH] chore: build uni-app --- packages/uni-app/dist/app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/uni-app/dist/app.js b/packages/uni-app/dist/app.js index b8d2940b4..9205f17ce 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; }; } -- GitLab