From e2359633dd282b7f9e24bb65ab7a7149a25f76a2 Mon Sep 17 00:00:00 2001 From: shizhong <124974919@qq.com> Date: Fri, 8 Mar 2024 21:00:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AF=B7=E5=81=87?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E6=8F=90=E4=BA=A4=E5=90=8E=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=B8=8D=E8=BF=94=E5=9B=9E=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bpm/oa/leave/index.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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() + } +)