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

perf(getCurrentPages): check 函数补充 toast 反馈

上级 5f712dda
...@@ -171,6 +171,7 @@ ...@@ -171,6 +171,7 @@
} }
} }
console.log('check $page', res) console.log('check $page', res)
uni.showToast(res ? { title: 'check success' } : { title: 'check fail', icon: 'error' })
return res return res
}, },
checkGetParentPage() : boolean { checkGetParentPage() : boolean {
...@@ -178,12 +179,14 @@ ...@@ -178,12 +179,14 @@
const parentPage = page.getParentPage() const parentPage = page.getParentPage()
const res = parentPage == null const res = parentPage == null
console.log('check getParentPage', res) console.log('check getParentPage', res)
uni.showToast(res ? { title: 'check success' } : { title: 'check fail', icon: 'error' })
return res return res
}, },
checkGetDialogPages() : boolean { checkGetDialogPages() : boolean {
const page = this.getCurrentPage() const page = this.getCurrentPage()
const dialogPages = page.getDialogPages() const dialogPages = page.getDialogPages()
const res = Array.isArray(dialogPages) && dialogPages.length == 0 const res = Array.isArray(dialogPages) && dialogPages.length == 0
uni.showToast(res ? { title: 'check success' } : { title: 'check fail', icon: 'error' })
console.log('check getDialogPages', res) console.log('check getDialogPages', res)
return res return res
}, },
...@@ -199,6 +202,7 @@ ...@@ -199,6 +202,7 @@
} }
// #endif // #endif
console.log('check getElementById', res) console.log('check getElementById', res)
uni.showToast(res ? { title: 'check success' } : { title: 'check fail', icon: 'error' })
return res return res
}, },
checkGetAndroidView() : boolean { checkGetAndroidView() : boolean {
...@@ -211,6 +215,7 @@ ...@@ -211,6 +215,7 @@
const res = androidView == null const res = androidView == null
// #endif // #endif
console.log('check getAndroidView', res) console.log('check getAndroidView', res)
uni.showToast(res ? { title: 'check success' } : { title: 'check fail', icon: 'error' })
return res return res
}, },
}, },
...@@ -257,4 +262,4 @@ ...@@ -257,4 +262,4 @@
.radio-value { .radio-value {
margin-left: 10px; margin-left: 10px;
} }
</style> </style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册