[Fix][UI] Fix bug where the home page displays no data. (#10697)

This commit is contained in:
Devosend 2022-06-30 18:32:32 +08:00 committed by GitHub
parent c2f1886306
commit 77fea14461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,8 +35,9 @@ export default defineComponent({
const { getProcessState, processVariables } = useProcessState()
const initData = () => {
taskStateRef.value = getTaskState(dateRef.value)
processStateRef.value = getProcessState(dateRef.value)
taskStateRef.value = getTaskState(dateRef.value) || taskStateRef.value
processStateRef.value =
getProcessState(dateRef.value) || processStateRef.value
}
const handleTaskDate = (val: any) => {