From 6abed3bf8e4a70e4667b56a4a66571f65158f9d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=8A=E9=87=8C?= <1227971437@qq.com> Date: Wed, 21 Apr 2021 15:59:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 3 +++ common/appInit.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/App.vue b/App.vue index 9d303567..5ae3568b 100644 --- a/App.vue +++ b/App.vue @@ -8,6 +8,8 @@ onLaunch: function() { console.log('App Launch') initApp(); + + //#ifdef APP-NVUE || H5 //预加载设置页面 uni.preloadPage({ url: "/pages/ucenter/settings/settings", @@ -15,6 +17,7 @@ // console.log(e); } }); + //#endif // #ifdef APP-PLUS //预加载一键登录 plus.oauth.getServices(oauthServices=>{ diff --git a/common/appInit.js b/common/appInit.js index afb7c3ff..e4c8d06c 100644 --- a/common/appInit.js +++ b/common/appInit.js @@ -4,8 +4,8 @@ import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update import callCheckVersion from '@/uni_modules/uni-upgrade-center-app/utils/call-check-version'; // #endif export default function() { - - // 初始化appVersion + + // 初始化appVersion(仅app生效) initAppVersion(); //自定义路由拦截 -- GitLab