diff --git a/pages/API/get-current-pages/get-current-pages.uvue b/pages/API/get-current-pages/get-current-pages.uvue index 384c0717fd946f7424db9259057d29aeacb2f51f..3e0e3d08e764be6849c8bfe76df880f830149ff2 100644 --- a/pages/API/get-current-pages/get-current-pages.uvue +++ b/pages/API/get-current-pages/get-current-pages.uvue @@ -171,6 +171,7 @@ } } console.log('check $page', res) + uni.showToast(res ? { title: 'check success' } : { title: 'check fail', icon: 'error' }) return res }, checkGetParentPage() : boolean { @@ -178,12 +179,14 @@ const parentPage = page.getParentPage() const res = parentPage == null console.log('check getParentPage', res) + uni.showToast(res ? { title: 'check success' } : { title: 'check fail', icon: 'error' }) return res }, checkGetDialogPages() : boolean { const page = this.getCurrentPage() const dialogPages = page.getDialogPages() const res = Array.isArray(dialogPages) && dialogPages.length == 0 + uni.showToast(res ? { title: 'check success' } : { title: 'check fail', icon: 'error' }) console.log('check getDialogPages', res) return res }, @@ -199,6 +202,7 @@ } // #endif console.log('check getElementById', res) + uni.showToast(res ? { title: 'check success' } : { title: 'check fail', icon: 'error' }) return res }, checkGetAndroidView() : boolean { @@ -211,6 +215,7 @@ const res = androidView == null // #endif console.log('check getAndroidView', res) + uni.showToast(res ? { title: 'check success' } : { title: 'check fail', icon: 'error' }) return res }, }, @@ -257,4 +262,4 @@ .radio-value { margin-left: 10px; } - +