From 160f7c959e632d790df8b00c4ec87e2c629e4edc Mon Sep 17 00:00:00 2001 From: qsh <> Date: Mon, 15 Jul 2024 10:29:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/index.ts | 2 +- src/views/Clue/Pool/Comp/DialogClue.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index d1d5f79..a8696e1 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -213,7 +213,7 @@ export const fenToYuan = (amount: string | number): number => { export const removeNullField = (obj: Object) => { for (const key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { - if (obj[key] === '') { + if (obj[key] === '' || obj[key] === null || obj[key] == undefined) { delete obj[key] } } diff --git a/src/views/Clue/Pool/Comp/DialogClue.vue b/src/views/Clue/Pool/Comp/DialogClue.vue index 4e3f142..21d5c86 100644 --- a/src/views/Clue/Pool/Comp/DialogClue.vue +++ b/src/views/Clue/Pool/Comp/DialogClue.vue @@ -162,6 +162,7 @@ const formSchema = computed(() => { newSchema.forEach((it) => { if (it.field == 'consultTime') { it.componentProps['disabled-date'] = dateAfterToday + it.componentProps['disabled'] = formType.value != 'create' } }) return [