From a8798564f0ef5ef4810e570586089e2eebfcd41d Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Wed, 11 Sep 2024 19:39:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(getCurrentPages):=20UniPage=20route=20?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/get-current-pages/get-current-pages.uvue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/API/get-current-pages/get-current-pages.uvue b/pages/API/get-current-pages/get-current-pages.uvue index 67901a7a..aa2b082c 100644 --- a/pages/API/get-current-pages/get-current-pages.uvue +++ b/pages/API/get-current-pages/get-current-pages.uvue @@ -67,7 +67,7 @@ checked: false, pages: [] as Page[], PageStyleArray: PageStyleArray as PageStyleItem[], - currentPageStyle: {} as UTSJSONObject, + currentPageStyle: {} as UTSJSONObject, testing: false } }, @@ -140,10 +140,10 @@ return pages[pages.length - 1] }, check$page() : boolean { - const page = this.getCurrentPage() - let res = this.$page === page - if(this.testing){ - res = res && page.options.get('test') == '123' + const page = this.getCurrentPage() + let res = this.$page === page + if(this.testing){ + res = res && page.options.get('test') == '123' && page.route == 'pages/API/get-current-pages/get-current-pages' } console.log('check $page', res) return res -- GitLab