From 77fea1446133447c52ea0bebdbef25246e0d0915 Mon Sep 17 00:00:00 2001 From: Devosend Date: Thu, 30 Jun 2022 18:32:32 +0800 Subject: [PATCH] [Fix][UI] Fix bug where the home page displays no data. (#10697) --- dolphinscheduler-ui/src/views/home/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dolphinscheduler-ui/src/views/home/index.tsx b/dolphinscheduler-ui/src/views/home/index.tsx index 145f29b05c..93a27f86a2 100644 --- a/dolphinscheduler-ui/src/views/home/index.tsx +++ b/dolphinscheduler-ui/src/views/home/index.tsx @@ -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) => {