From e94b31d717e0b4a684decf30bc1feae57d3c60fe Mon Sep 17 00:00:00 2001 From: 26947 <12@1> Date: Wed, 12 Jun 2024 16:37:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=BA=9B=E7=AE=80?= =?UTF-8?q?=E5=8D=95=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/activity/publish.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/activity/publish.vue b/pages/activity/publish.vue index 03e41a4..8e48b5b 100644 --- a/pages/activity/publish.vue +++ b/pages/activity/publish.vue @@ -141,7 +141,10 @@ const data = reactive({ { required: true, message: '请选择活动结束时间', trigger: 'change' }, { validator: (rule, value, callback) => { - if (value <= form.value.startTime) { + if( value == null | form.value.startTime == null ){ + callback(); + } + else if (value <= form.value.startTime) { callback(proxy.$modal.msgError('时间选择错误')); } else { callback(); @@ -153,7 +156,6 @@ const data = reactive({ } }); const { form, rules } = toRefs(data); -const fileList1 = ref([]) const fileTypeInfo1 = ref('image') const bgColor = ref(''); bgColor.value = 'rgba(170, 0, 0, 0)'