提交 6abed3bf 编写于 作者: 芊里

条件编译

上级 cf1be0e3
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
onLaunch: function() { onLaunch: function() {
console.log('App Launch') console.log('App Launch')
initApp(); initApp();
//#ifdef APP-NVUE || H5
//预加载设置页面 //预加载设置页面
uni.preloadPage({ uni.preloadPage({
url: "/pages/ucenter/settings/settings", url: "/pages/ucenter/settings/settings",
...@@ -15,6 +17,7 @@ ...@@ -15,6 +17,7 @@
// console.log(e); // console.log(e);
} }
}); });
//#endif
// #ifdef APP-PLUS // #ifdef APP-PLUS
//预加载一键登录 //预加载一键登录
plus.oauth.getServices(oauthServices=>{ plus.oauth.getServices(oauthServices=>{
......
...@@ -5,7 +5,7 @@ import callCheckVersion from '@/uni_modules/uni-upgrade-center-app/utils/call-ch ...@@ -5,7 +5,7 @@ import callCheckVersion from '@/uni_modules/uni-upgrade-center-app/utils/call-ch
// #endif // #endif
export default function() { export default function() {
// 初始化appVersion // 初始化appVersion(仅app生效)
initAppVersion(); initAppVersion();
//自定义路由拦截 //自定义路由拦截
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册