添加清楚state事件

This commit is contained in:
赛伊德
2025-10-28 14:51:14 +08:00
parent 0040bd91b4
commit baff697b4f
5 changed files with 24 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
import { computed } from 'vue'
import { useRouter } from 'vue-router'
import { showConfirmDialog } from 'vant'
import MyEvent from '@/utils/myEvent'
const router = useRouter()
const currentRoute = computed(() => router.currentRoute.value.path)
@@ -23,6 +24,7 @@
cancelButtonText: 'Cancel',
})
.then(() => {
MyEvent.emit('clear-generate-state')
nav.path && router.push(nav.path)
})
.catch(() => {})