fix: 修复请假申请提交后页面不返回的bug

pull/420/head
shizhong 2024-03-08 21:00:35 +08:00
parent ce62ded6b6
commit e2359633dd
1 changed files with 9 additions and 1 deletions

View File

@ -35,7 +35,7 @@ defineOptions({ name: 'BpmOALeave' })
const { t } = useI18n() //
const message = useMessage() //
const { push } = useRouter() //
const { push, router } = useRouter() //
const [registerTable, { reload }] = useXTable({
allSchemas: allSchemas,
@ -82,4 +82,12 @@ const handleProcessDetail = (row) => {
}
})
}
// fix:
watch(
() => router.currentRoute.value,
() => {
reload()
}
)
</script>