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{