From 0588282b199033e603b8da4923bea3632d384b05 Mon Sep 17 00:00:00 2001 From: Huangzhe Date: Mon, 19 May 2025 19:38:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=8F=B0=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复错误字段长度判断引发的异常 - 修复错误的 placeholder 内容文本 --- src/components/Analysis/Index.vue | 2 +- src/views/Home/Index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Analysis/Index.vue b/src/components/Analysis/Index.vue index 31703aa..adef644 100644 --- a/src/components/Analysis/Index.vue +++ b/src/components/Analysis/Index.vue @@ -22,7 +22,7 @@ const chartHeight = computed(() => { const optionLength = analysis.value?.option?.length; // 做一些额外的检测, 如果 option 下面的title 字段超过 8 个,就把 addHeight 增加 analysis.value?.option?.forEach((item: any) => { - if (item.title.length > 8) { + if (item.title?.length > 8) { addHeight += 5; } }); diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index b1109ba..beac2e1 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -52,7 +52,7 @@ function handleSearchClick() {