fix: 修复请假申请提交后页面不返回的bug
parent
ce62ded6b6
commit
e2359633dd
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue