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

refactor(dialogPage): 移除类型转换

上级 a75ab70f
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
const parentPage = this.$page.getParentPage()! const parentPage = this.$page.getParentPage()!
const grandParentPage = parentPage.getParentPage() const grandParentPage = parentPage.getParentPage()
const dialogPages = parentPage.getDialogPages() const dialogPages = parentPage.getDialogPages()
const dialogPage = this.$page as UniDialogPage const dialogPage = this.$page
if ( if (
currentPages.length == 1 && currentPages.length == 1 &&
grandParentPage == null && grandParentPage == null &&
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
}, },
closeThisDialog() { closeThisDialog() {
uni.closeDialogPage({ uni.closeDialogPage({
dialogPage: this.$page as UniDialogPage, dialogPage: this.$page,
success(res) { success(res) {
console.log('closeThisDialog success', res) console.log('closeThisDialog success', res)
// 自动化测试 // 自动化测试
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
}, },
closeThisDialog() { closeThisDialog() {
uni.closeDialogPage({ uni.closeDialogPage({
dialogPage: this.$page as UniDialogPage, dialogPage: this.$page,
success(res) { success(res) {
console.log('closeThisDialog success', res) console.log('closeThisDialog success', res)
// 自动化测试 // 自动化测试
......
...@@ -32,13 +32,13 @@ ...@@ -32,13 +32,13 @@
methods: { methods: {
agree() { agree() {
uni.closeDialogPage({ uni.closeDialogPage({
dialogPage: this.$page as UniDialogPage dialogPage: this.$page
}) })
}, },
reject() { reject() {
uni.resetPrivacyAuthorization() uni.resetPrivacyAuthorization()
uni.closeDialogPage({ uni.closeDialogPage({
dialogPage: this.$page as UniDialogPage dialogPage: this.$page
}) })
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册