加个setTimeout
This commit is contained in:
@@ -92,6 +92,7 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.calendarList = res.data;
|
this.calendarList = res.data;
|
||||||
|
setTimeout(()=>{
|
||||||
let arr = Object.keys(res.data).map(key => (res.data[key]))
|
let arr = Object.keys(res.data).map(key => (res.data[key]))
|
||||||
this.list = arr[this.day - 1]?.taskList
|
this.list = arr[this.day - 1]?.taskList
|
||||||
let calList = arr.filter(item=> (item.taskList && item.taskList.length > 0))
|
let calList = arr.filter(item=> (item.taskList && item.taskList.length > 0))
|
||||||
@@ -118,6 +119,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},1000)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user