From 07cf61b7d4c05bfdbbba45cf137551d186430078 Mon Sep 17 00:00:00 2001 From: suyanyan <1321717064@qq.com> Date: Tue, 24 Sep 2024 15:19:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=85=E9=81=93bug=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/userManage/personnel/components/form/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SafeCampus.WEB/src/views/userManage/personnel/components/form/index.vue b/SafeCampus.WEB/src/views/userManage/personnel/components/form/index.vue index a9f94ec..1c50e15 100644 --- a/SafeCampus.WEB/src/views/userManage/personnel/components/form/index.vue +++ b/SafeCampus.WEB/src/views/userManage/personnel/components/form/index.vue @@ -68,6 +68,8 @@ function onOpen(props: FormProps.Base) { if (props.record.personId) { //如果传了id,就去请求api获取record userManagePersonnelApi.detail({ id: props.record.personId }).then((res: any) => { + if (!res.data.majorId) res.data.majorId = ""; + if (!res.data.depId) res.data.depId = ""; sysUserProps.record = res.data; }); }