diff --git a/pages/API/dialog-page/dialog-page.uvue b/pages/API/dialog-page/dialog-page.uvue index 812a1a87f4aeb9698254b33bc6472ef6cf039763..be997b18dccfab47722a214e47d00925fdd23a1f 100644 --- a/pages/API/dialog-page/dialog-page.uvue +++ b/pages/API/dialog-page/dialog-page.uvue @@ -72,7 +72,7 @@ const fnOnce = (options: any | null) => { console.log('dialogPage1 be triggered fnOnce', options) setLifeCycleNum(state.lifeCycleNum + 1) - } + } dialogPage.on('fn1', fn1) dialogPage.on('fn1', fn11) dialogPage.on('fn2', fn2) @@ -165,7 +165,7 @@ }) }, closeSpecifiedDialog(index: number) { - const dialogPages = this.getDialogPages() + const dialogPages = this.$page.getDialogPages() uni.closeDialogPage({ dialogPage: dialogPages[index], success(res) {