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)'