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) {