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

条件编译

上级 cf1be0e3
......@@ -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=>{
......
......@@ -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();
//自定义路由拦截
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册