From e14b6d676c46cf72aa74ca6907dbc7899f70c9f3 Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Thu, 3 Jul 2025 18:41:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/index.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 097a9ed..1be47e4 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -26,13 +26,13 @@
- +
- 您有{{ todoList?.length || 0 }}条待办需要处理 + 您有{{ todoNum || 0 }}条待办需要处理
查看更多 @@ -70,13 +70,13 @@
- +
- 您有{{ todoList.length }}条待办需要处理 + 您有{{ todoNum }}条待办需要处理
查看更多 @@ -359,6 +359,8 @@ const taskTabList = ref([ } ]) const todoList = ref([]) +const doneNum = ref(0) +const todoNum = ref(0) const noticeList = ref([]) const rulesList = ref([]) const helpDocList = ref([]) @@ -631,7 +633,7 @@ const getTodoList = () => { getHomeTaskInfo().then(res => { if (res.code === 1000) { todoList.value = res.data.rows - // todoNum.value=res.data.total + todoNum.value=res.data.total } else { ElNotification({ title: '提示', @@ -645,7 +647,7 @@ const getDoneList = () => { getDoneTaskInfo().then(res => { if (res.code === 1000) { doneList.value = res.data.rows - // todoNum.value=res.data.total + doneNum.value=res.data.total } else { ElNotification({ title: '提示',