From 9ae7b1926bb326f32655fa6028387e42de140a0e Mon Sep 17 00:00:00 2001 From: xingyu Date: Thu, 31 Aug 2023 15:25:01 +0800 Subject: [PATCH] fix: type --- src/components/Form/src/hooks/useFormEvents.ts | 2 +- src/views/system/sms/log/smsLog.data.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Form/src/hooks/useFormEvents.ts b/src/components/Form/src/hooks/useFormEvents.ts index 5b18aa56..d2ce15c2 100644 --- a/src/components/Form/src/hooks/useFormEvents.ts +++ b/src/components/Form/src/hooks/useFormEvents.ts @@ -314,7 +314,7 @@ export function useFormEvents({ const currentFieldsValue = getFieldsValue() schemas.forEach((item) => { if ( - item.component != 'Divider' + item.component !== 'Divider' && Reflect.has(item, 'field') && item.field && !isNullOrUnDef(item.defaultValue) diff --git a/src/views/system/sms/log/smsLog.data.ts b/src/views/system/sms/log/smsLog.data.ts index 7d17da4e..9a65aae3 100644 --- a/src/views/system/sms/log/smsLog.data.ts +++ b/src/views/system/sms/log/smsLog.data.ts @@ -23,7 +23,7 @@ export const columns: BasicColumn[] = [ width: 180, customRender: ({ text, record }) => { if (record.userType && record.userId) - return `${useRender.renderDict(record.userType, DICT_TYPE.USER_TYPE)}record.userId` + return `${useRender.renderDict(record.userType, DICT_TYPE.USER_TYPE)} + ${record.userId}` else return text },