From 6f74448bb76bfc98bc9713e83f764ae5be9c148d Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Mon, 14 Oct 2024 17:33:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor(dialogPage):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/dialog-page/dialog-1.uvue | 4 ++-- pages/API/dialog-page/dialog-2.uvue | 2 +- pages/API/dialog-page/dialog-privacytest.uvue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/API/dialog-page/dialog-1.uvue b/pages/API/dialog-page/dialog-1.uvue index 328088e3..8f7dccee 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 ca71940c..bf12ae54 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 b844fc39..f654cb83 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 }) } } -- GitLab