From 26442c0abedce817e4f6f2598b21ee3bcf5222a1 Mon Sep 17 00:00:00 2001 From: gexinzhineng/gxzn27 <1348660141@qq.com> Date: Tue, 28 Feb 2023 17:54:37 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=B5=81=E7=A8=8B=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=20=E5=AF=BC=E5=85=A5=E6=B5=81=E7=A8=8B=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=20=E6=B5=81=E7=A8=8B=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=BAnull=20=E6=98=BE=E7=A4=BA=E4=B8=BA0?= =?UTF-8?q?=20=EF=BC=88=E7=8E=B0=E9=BB=98=E8=AE=A4=E4=B8=BA1=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bpm/model/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/bpm/model/index.vue b/src/views/bpm/model/index.vue index 62d0edcc..298b0b6e 100644 --- a/src/views/bpm/model/index.vue +++ b/src/views/bpm/model/index.vue @@ -433,7 +433,11 @@ const handleUpdate = async (rowId: number) => { await setDialogTile('edit') // 设置数据 saveForm.value = await ModelApi.getModelApi(rowId) - saveForm.value.category = Number(saveForm.value.category) + if (saveForm.value.category == null) { + saveForm.value.category = 1 + } else { + saveForm.value.category = Number(saveForm.value.category) + } } // 提交按钮