From 11d206883d19a281b4093dd86d13c041c07ea3f3 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Tue, 22 Oct 2024 22:19:41 +0800 Subject: [PATCH] =?UTF-8?q?perf(getCurrentPages):=20check=20=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E8=A1=A5=E5=85=85=20toast=20=E5=8F=8D=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/get-current-pages/get-current-pages.uvue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/API/get-current-pages/get-current-pages.uvue b/pages/API/get-current-pages/get-current-pages.uvue index 384c0717..3e0e3d08 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; } - + -- GitLab