From 9ee3145db6b5950dfb66a9f422a55e8228a2532e Mon Sep 17 00:00:00 2001 From: Gaojianli Date: Thu, 7 Nov 2024 11:32:49 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E5=B0=B1=E8=83=BD=E6=90=9C=E7=B4=A2=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webui/src/views/data-view/ipList/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webui/src/views/data-view/ipList/index.vue b/webui/src/views/data-view/ipList/index.vue index 8e8737aee7..c46997f234 100644 --- a/webui/src/views/data-view/ipList/index.vue +++ b/webui/src/views/data-view/ipList/index.vue @@ -13,7 +13,7 @@ placeholder="192.168.1.1...." class="searchBox" :loading="loading" - @search="run" + @search="handleSearch" />
@@ -231,6 +231,11 @@ onMounted(() => { run(searchInput.value) } }) +const handleSearch = (value: string) => { + if (value) { + run(value) + } +}