From 5a7e267b6fc610315a95c41aa58788ffd4555328 Mon Sep 17 00:00:00 2001 From: KDZhu Date: Sun, 29 Sep 2024 11:09:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9C=A8=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=B3=95=E6=8C=89enter=E6=97=B6=E4=BC=A0=E5=85=A5?= =?UTF-8?q?=E7=9A=84=E6=90=9C=E7=B4=A2=E5=85=B3=E9=94=AE=E5=AD=97=E4=B8=8D?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98=20#=20Reviewed,?= =?UTF-8?q?=20transaction=20id:=2019669?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dashboard-front/src/components/version-diff/index.vue | 4 ++-- .../src/views/components/plugin-manage/index.vue | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/dashboard-front/src/components/version-diff/index.vue b/src/dashboard-front/src/components/version-diff/index.vue index 564e0e7ff..de48a891c 100644 --- a/src/dashboard-front/src/components/version-diff/index.vue +++ b/src/dashboard-front/src/components/version-diff/index.vue @@ -521,8 +521,8 @@ const handleToggle = (item: any) => { item.isExpanded = !item.isExpanded; }; -const handleSearch = () => { - searchKeyword.value = searchParams.keyword; +const handleSearch = (keyword?: string) => { + searchKeyword.value = keyword || ''; }; const handleClear = () => { diff --git a/src/dashboard-front/src/views/components/plugin-manage/index.vue b/src/dashboard-front/src/views/components/plugin-manage/index.vue index a878f4395..a2a7cb610 100644 --- a/src/dashboard-front/src/views/components/plugin-manage/index.vue +++ b/src/dashboard-front/src/views/components/plugin-manage/index.vue @@ -555,14 +555,15 @@ const handleChoosePlugin = (obj: any) => { }; // enter搜索 -const handleSearch = () => { +const handleSearch = async (keyword?: string) => { + searchValue.value = keyword || ''; const params = { + keyword, scope_type: scopeType.value, scope_id: scopeId.value, - keyword: searchValue.value, }; try { - getPluginListDetails(params); + await getPluginListDetails(params); updateTableEmptyConfig(); tableEmptyConf.value.isAbnormal = false; } catch (error) {