From fbc7a8b351fbbd1a57f86faf920c774727b4cffe 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?= 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}`;