From 42c3ce45250c1d8370cb98a286d0a3dce1198131 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Wed, 7 Dec 2022 10:16:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E5=B1=80=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/DetailsPageconetent.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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