提交 4da966df 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

refactor(dialogPage): 移除类型转换

上级 9b071162
......@@ -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)
// 自动化测试
......
......@@ -93,7 +93,7 @@
},
closeThisDialog() {
uni.closeDialogPage({
dialogPage: this.$page as UniDialogPage,
dialogPage: this.$page,
success(res) {
console.log('closeThisDialog success', res)
// 自动化测试
......
......@@ -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
})
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册