From ed45239b468a63aec4c41bacb6a67a3d043c9aa5 Mon Sep 17 00:00:00 2001 From: wkc <978997012@qq.com> Date: Sat, 28 Feb 2026 09:44:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=B9=E5=96=84=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=92=8C=E6=95=B0=E6=8D=AE=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/ccdiProject/index.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ruoyi-ui/src/views/ccdiProject/index.vue b/ruoyi-ui/src/views/ccdiProject/index.vue index acf3d0e..4b3c25d 100644 --- a/ruoyi-ui/src/views/ccdiProject/index.vue +++ b/ruoyi-ui/src/views/ccdiProject/index.vue @@ -132,17 +132,19 @@ export default { this.total = listResponse.total // 处理状态统计 - const counts = countsResponse.data + const counts = countsResponse.data || {} this.tabCounts = { - all: counts.all, - '0': counts.status0, - '1': counts.status1, - '2': counts.status2 + all: counts.all || 0, + '0': counts.status0 || 0, + '1': counts.status1 || 0, + '2': counts.status2 || 0 } this.loading = false - }).catch(() => { + }).catch((error) => { this.loading = false + console.error('加载数据失败:', error) + this.$modal.msgError('加载数据失败,请稍后重试') }) }, /** 搜索按钮操作 */