From 046e6ce5a765486880298f4f600e7c113a522217 Mon Sep 17 00:00:00 2001 From: LesanOuO <1960681385@qq.com> Date: Sat, 16 Nov 2024 14:37:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=93id=E4=B8=BA=E9=9B=AA=E8=8A=B1id?= =?UTF-8?q?=E6=97=B6=E6=97=A0=E6=B3=95=E4=BC=A0=E9=80=92id=E8=87=B3?= =?UTF-8?q?=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bpm/form/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/bpm/form/index.vue b/src/views/bpm/form/index.vue index 3d542c80..46edd8f9 100644 --- a/src/views/bpm/form/index.vue +++ b/src/views/bpm/form/index.vue @@ -143,8 +143,9 @@ const openForm = (id?: number) => { const toRouter: { name: string; query?: { id: number } } = { name: 'BpmFormEditor' } + console.log(typeof id) // 表单新建的时候id传的是event需要排除 - if (typeof id === 'number') { + if (typeof id === 'number' || typeof id === 'string') { toRouter.query = { id }