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

feat(getCurrentPages): UniPage route 校验

上级 d59a599d
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
checked: false, checked: false,
pages: [] as Page[], pages: [] as Page[],
PageStyleArray: PageStyleArray as PageStyleItem[], PageStyleArray: PageStyleArray as PageStyleItem[],
currentPageStyle: {} as UTSJSONObject, currentPageStyle: {} as UTSJSONObject,
testing: false testing: false
} }
}, },
...@@ -140,10 +140,10 @@ ...@@ -140,10 +140,10 @@
return pages[pages.length - 1] return pages[pages.length - 1]
}, },
check$page() : boolean { check$page() : boolean {
const page = this.getCurrentPage() const page = this.getCurrentPage()
let res = this.$page === page let res = this.$page === page
if(this.testing){ if(this.testing){
res = res && page.options.get('test') == '123' res = res && page.options.get('test') == '123' && page.route == 'pages/API/get-current-pages/get-current-pages'
} }
console.log('check $page', res) console.log('check $page', res)
return res return res
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册