diff --git a/front/src/views/home/DetailsPageconetent.vue b/front/src/views/home/DetailsPageconetent.vue index 52fdfd2d..d4dd53e1 100644 --- a/front/src/views/home/DetailsPageconetent.vue +++ b/front/src/views/home/DetailsPageconetent.vue @@ -1272,7 +1272,17 @@ if (Cardsname.value === arr[0] && arr[0] == '基础设施') { getAppResources2() } else { - changeCards(arr[0]) + let newQuery = JSON.parse( + JSON.stringify(router.currentRoute.value.query) + ) + newQuery.str = searchValue.value + router + .replace({ + query: newQuery, + }) + .then(() => { + changeCards(arr[0]) + }) } if (!mapFlag) { return