From e3d74f85ecab9af379bb75e33c8d7027140078b3 Mon Sep 17 00:00:00 2001 From: luJianJun <2587063613@qq.com> Date: Fri, 21 Jul 2023 16:16:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=B5=8B=E6=90=9C=E7=B4=A2=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=90=9C=E7=B4=A2=E5=86=85=E5=AE=B9=E4=B8=8D=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/seachIndex.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/seachIndex.vue b/src/views/seachIndex.vue index 4b296a3..fc54ca2 100644 --- a/src/views/seachIndex.vue +++ b/src/views/seachIndex.vue @@ -183,7 +183,7 @@ onMounted(() => { gutter: 20 }); routeQuery.data = route.currentRoute.value.query - if(routeQuery.data.keyword){ + if(routeQuery.data.keyword&&routeQuery.data.keyword.replace(/\s/g, "")){ inputModuleInfo.value.searchInit(routeQuery.data.keyword)//调用搜索组件的搜索功能 route.currentRoute.value.query.keyword='' }else{