diff --git a/pages/API/dialog-page/dialog-1.uvue b/pages/API/dialog-page/dialog-1.uvue index 328088e309cb06ef3f16fd321a84b32a3e77e05a..8f7dccee7551039d03093fc8cf69c3dbd1e676cd 100644 --- a/pages/API/dialog-page/dialog-1.uvue +++ b/pages/API/dialog-page/dialog-1.uvue @@ -46,7 +46,7 @@ const parentPage = this.$page.getParentPage()! const grandParentPage = parentPage.getParentPage() const dialogPages = parentPage.getDialogPages() - const dialogPage = this.$page as UniDialogPage + const dialogPage = this.$page if ( currentPages.length == 1 && grandParentPage == null && @@ -118,7 +118,7 @@ }, closeThisDialog() { uni.closeDialogPage({ - dialogPage: this.$page as UniDialogPage, + dialogPage: this.$page, success(res) { console.log('closeThisDialog success', res) // 自动化测试 diff --git a/pages/API/dialog-page/dialog-2.uvue b/pages/API/dialog-page/dialog-2.uvue index ca71940c24a8301eb57bb4c7e7d08ae943dedb3e..bf12ae542be32dc573c71df34b1b1e2f8626bc45 100644 --- a/pages/API/dialog-page/dialog-2.uvue +++ b/pages/API/dialog-page/dialog-2.uvue @@ -93,7 +93,7 @@ }, closeThisDialog() { uni.closeDialogPage({ - dialogPage: this.$page as UniDialogPage, + dialogPage: this.$page, success(res) { console.log('closeThisDialog success', res) // 自动化测试 diff --git a/pages/API/dialog-page/dialog-privacytest.uvue b/pages/API/dialog-page/dialog-privacytest.uvue index b844fc39862bc2a84d7db906abf519a854612137..f654cb831c28e09b72a104f8e6a5990ffbfb7337 100644 --- a/pages/API/dialog-page/dialog-privacytest.uvue +++ b/pages/API/dialog-page/dialog-privacytest.uvue @@ -32,13 +32,13 @@ methods: { agree() { uni.closeDialogPage({ - dialogPage: this.$page as UniDialogPage + dialogPage: this.$page }) }, reject() { uni.resetPrivacyAuthorization() uni.closeDialogPage({ - dialogPage: this.$page as UniDialogPage + dialogPage: this.$page }) } }