赵添更 2 mesiacov pred
rodič
commit
aedddfa9c1

+ 6 - 5
packages/merchant/src/pages/agent/todo/index.vue

@@ -66,6 +66,7 @@ const handleSubmit = async () => {
   )
   await setData()
   addSheetVisible.value = false
+  await setList()
   formData.value = {}
 }
 const handleDelete = async (todo: Todo) => {
@@ -81,12 +82,12 @@ const handleCalendarChange = async () => {
   await setData()
 }
 const formatter = (day: any) => {
-  let date = dayjs(new Date(day.date)).format('YYYY-MM-DD')
-  let list2 = list.value
-  for(const {executionTime} of list2) {
-    let date2 = dayjs(new Date(executionTime)).format('YYYY-MM-DD')
+  const date = dayjs(new Date(day.date)).format('YYYY-MM-DD')
+  const list2 = list.value
+  for (const { executionTime } of list2) {
+    const date2 = dayjs(new Date(executionTime)).format('YYYY-MM-DD')
     if (date === date2) {
-      day.bottomInfo = '⚫️'
+      day.bottomInfo = ''
     }
   }
   return day