From ffd89da94a31f837f4faab3ce8b6b4d99deee266 Mon Sep 17 00:00:00 2001 From: chenwenchang <479999519@qq.com> Date: Thu, 21 Nov 2024 14:25:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E5=85=A8=E5=B1=80=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=85=BC=E5=AE=B9name=E4=B8=BAnull=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=20#8088=20#=20Reviewed,=20transaction=20id:=2024710?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/search-result/render-result/Instance.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbm-ui/frontend/src/components/system-search/components/search-result/render-result/Instance.vue b/dbm-ui/frontend/src/components/system-search/components/search-result/render-result/Instance.vue index 74de3d4874..075aa86839 100644 --- a/dbm-ui/frontend/src/components/system-search/components/search-result/render-result/Instance.vue +++ b/dbm-ui/frontend/src/components/system-search/components/search-result/render-result/Instance.vue @@ -52,7 +52,7 @@ const handleRedirect = useRedirect(); const getMatchText = (data: Props['data'][number]) => { - if (data.name.indexOf(props.keyWord) > -1) { + if (data.name?.indexOf(props.keyWord) > -1) { return data.name; } return `${data.ip}:${data.port}`;