搜索为空可以跳转搜索页

This commit is contained in:
2023-07-21 16:14:58 +08:00
parent a8e75b0f98
commit da63d7358e
3 changed files with 12 additions and 8 deletions

View File

@@ -118,6 +118,7 @@ let getDataList = (data) => {
} else {
let data = res.data
dataList.count = res.data.count
dataCount.value = res.data.count
listApartment.value = listApartment.value.concat(data.data)
nextTick(() => {
masonryInstance.reloadItems();
@@ -186,7 +187,9 @@ onMounted(() => {
inputModuleInfo.value.searchInit(routeQuery.data.keyword)//调用搜索组件的搜索功能
route.currentRoute.value.query.keyword=''
}else{
getDataList()
console.log(seachSelectData.data)
inputModuleInfo.value.checkPageType()
// getDataList(seachSelectData.data)
}
window.addEventListener('scroll', downLoadMore, true);
})