diff --git a/src/views/bpm/oa/leave/index.vue b/src/views/bpm/oa/leave/index.vue index 894ce46c..2a3db687 100644 --- a/src/views/bpm/oa/leave/index.vue +++ b/src/views/bpm/oa/leave/index.vue @@ -35,8 +35,8 @@ defineOptions({ name: 'BpmOALeave' }) const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 -const { push, router } = useRouter() // 路由 - +const { push } = useRouter() // 路由 +const router = useRouter() // 路由 const [registerTable, { reload }] = useXTable({ allSchemas: allSchemas, getListApi: LeaveApi.getLeavePageApi @@ -84,10 +84,10 @@ const handleProcessDetail = (row) => { } // fix: 列表不刷新的问题。 -// watch( -// () => router.currentRoute.value, -// () => { -// reload() -// } -// ) +watch( + () => router.currentRoute.value, + () => { + reload() + } +)