no message

This commit is contained in:
kuaifan 2025-03-26 18:57:19 +08:00
parent a2066fc137
commit 0dde37e1f1
2 changed files with 5 additions and 2 deletions

View File

@ -72,7 +72,7 @@
"vue-resize-observer": "^2.0.16",
"vue-router": "^3.6.5",
"vue-template-compiler": "~2.6.14",
"vue-virtual-scroll-list-hi": "^2.3.5-16",
"vue-virtual-scroll-list-hi": "^2.3.5-17",
"vuedraggable": "^2.24.3",
"vuex": "^3.6.2"
},

View File

@ -8,7 +8,7 @@
:beforeClose="onBeforeClose"
:class-name="`dialog-modal${closIng > 0 ? ' dialog-closing' : ''}`"
fullscreen>
<DialogWrapper v-if="windowPortrait && dialogId > 0" :dialogId="dialogId" :beforeBack="onBeforeClose" location="modal"/>
<DialogWrapper v-if="windowPortrait && dialogId > 0" ref="dialogWrapper" :dialogId="dialogId" :beforeBack="onBeforeClose" location="modal"/>
</Modal>
</template>
@ -79,6 +79,9 @@ export default {
methods: {
onBeforeClose() {
if (this.$refs.dialogWrapper) {
this.$refs.dialogWrapper.operateVisible = false
}
return new Promise(async _ => {
this.closIng++
await this.$store.dispatch("openDialog", 0)