From f63bccd1fe08ec29810443acfe3eca20c56157da Mon Sep 17 00:00:00 2001 From: gexinzhineng/gxzn27 <1348660141@qq.com> Date: Fri, 3 Mar 2023 15:27:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8BOA=E8=AF=B7=E5=81=87=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=B5=81=E7=A8=8B=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bpm/oa/leave/detail.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/bpm/oa/leave/detail.vue b/src/views/bpm/oa/leave/detail.vue index bb30d075..25ac9981 100644 --- a/src/views/bpm/oa/leave/detail.vue +++ b/src/views/bpm/oa/leave/detail.vue @@ -2,6 +2,7 @@ + 返回 @@ -9,7 +10,8 @@ // 业务相关的 import import * as LeaveApi from '@/api/bpm/leave' import { allSchemas } from '@/views/bpm/oa/leave/leave.data' - +import { useRouter } from 'vue-router' +const router = useRouter() const { query } = useRoute() // 查询参数 const message = useMessage() // 消息弹窗 @@ -22,6 +24,10 @@ const formData = ref({ reason: undefined }) +const routerReturn = () => { + router.back() +} + onMounted(() => { id.value = query.id if (!id.value) {