diff --git a/pages/API/get-current-pages/get-current-pages.uvue b/pages/API/get-current-pages/get-current-pages.uvue index 67901a7a4e7ad7438f80cf4ec5985fbd7b2d6258..aa2b082c91587be6efc109694c6d5faf139ae5a5 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