ZaiZai 1 рік тому
батько
коміт
5c0917f3ab
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      src/views/tasks/message.vue

+ 2 - 1
src/views/tasks/message.vue

@@ -121,13 +121,14 @@ const queryTaskType = async () => {
 const betweenTime = ref(null)
 const betweenTimeUpdate = ({ val, arr }) => {
     betweenTime.value = arr
-    if (val && val.length > 0) {
+    if (val && arr.length > 0) {
         searchForm.value.startDate = val['start']
         searchForm.value.endDate = val['end']
     } else {
         searchForm.value.startDate = null
         searchForm.value.endDate = null
     }
+    console.log(searchForm.value)
 }
 
 //搜索