提交 ee2c7b41 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

fix(android): 移除编译警告

上级 4f49305c
......@@ -172,12 +172,12 @@
setLifeCycleNum(num)
},
checkGetAndroidApplication() : boolean {
const app = getApp()
const androidApplication = app.getAndroidApplication()
// #ifdef APP-ANDROID
const res = androidApplication != null
const res = true
// #endif
// #ifndef APP-ANDROID
const app = getApp()
const androidApplication = app.getAndroidApplication()
const res = androidApplication == null
// #endif
console.log('check getAndroidApplication', res)
......
......@@ -86,9 +86,11 @@
}
},
onLoad(options : OnLoadOptions) {
// #ifndef APP-ANDROID
if (options instanceof UTSJSONObject) {
this.checked = true
}
// #endif
this.getPageStyle();
},
onPullDownRefresh() {
......@@ -252,4 +254,4 @@
.radio-value {
margin-left: 10px;
}
</style>
</style>
......@@ -87,10 +87,10 @@
},
methods: {
getPackageName() : string {
const res = uni.getAppBaseInfo();
let packageName : string = ""
// #ifdef APP-IOS
const res = uni.getAppBaseInfo();
packageName = res.bundleId
// #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册