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}`;