diff --git a/pages/API/dialog-page/dialog-1.uvue b/pages/API/dialog-page/dialog-1.uvue index 0b9d79a5be4ee2b6d2452fe798cead7212f7befc..d62e6bc672e5452cd81b46022355d939a1c0948c 100644 --- a/pages/API/dialog-page/dialog-1.uvue +++ b/pages/API/dialog-page/dialog-1.uvue @@ -43,9 +43,9 @@ // 自动化测试 setLifeCycleNum(state.lifeCycleNum + 1) const currentPages = getCurrentPages() - const parentPage = this.$getParentPage()! - const grandParentPage = parentPage.$getParentPage() - const dialogPages = parentPage.$getDialogPages() + const parentPage = this.getParentPage()! + const grandParentPage = parentPage.getParentPage() + const dialogPages = parentPage.getDialogPages() const dialogPage = this.$dialogPage! if ( currentPages.length == 1 && diff --git a/pages/API/dialog-page/dialog-page.uvue b/pages/API/dialog-page/dialog-page.uvue index 4d687e2d49b18e8f6a1ceed72856ab9e07c295c4..812a1a87f4aeb9698254b33bc6472ef6cf039763 100644 --- a/pages/API/dialog-page/dialog-page.uvue +++ b/pages/API/dialog-page/dialog-page.uvue @@ -73,7 +73,7 @@ console.log('dialogPage1 be triggered fnOnce', options) setLifeCycleNum(state.lifeCycleNum + 1) } - dialogPage.on('fn1', fn1) + dialogPage.on('fn1', fn1) dialogPage.on('fn1', fn11) dialogPage.on('fn2', fn2) dialogPage.once('fnOnce', fnOnce) @@ -165,7 +165,7 @@ }) }, closeSpecifiedDialog(index: number) { - const dialogPages = this.$getDialogPages() + const dialogPages = this.getDialogPages() uni.closeDialogPage({ dialogPage: dialogPages[index], success(res) {