检测搜索页面搜索内容不为空
This commit is contained in:
@@ -183,7 +183,7 @@ onMounted(() => {
|
|||||||
gutter: 20
|
gutter: 20
|
||||||
});
|
});
|
||||||
routeQuery.data = route.currentRoute.value.query
|
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)//调用搜索组件的搜索功能
|
inputModuleInfo.value.searchInit(routeQuery.data.keyword)//调用搜索组件的搜索功能
|
||||||
route.currentRoute.value.query.keyword=''
|
route.currentRoute.value.query.keyword=''
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user