diff --git a/src/views/bpm/oa/leave/index.vue b/src/views/bpm/oa/leave/index.vue index 6cdb54e7..c28eddf2 100644 --- a/src/views/bpm/oa/leave/index.vue +++ b/src/views/bpm/oa/leave/index.vue @@ -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() + } +)