首页跳转个人房源设置

This commit is contained in:
2023-07-20 12:21:39 +08:00
parent 7d2ac77df4
commit daf15376e9
6 changed files with 116 additions and 50 deletions

View File

@@ -136,10 +136,14 @@ let downLoadMore = () => {
//listImg
onMounted(() => {
console.log(router.params)
console.log(router.currentRoute.value.query)
if(Object.keys(router.currentRoute.value.query).length>0){
seachSelectData.data={...router.currentRoute.value.query}
let {type,data}=router.currentRoute.value.query
let typeData=JSON.parse(data)
if(Object.keys(data).length>0){
if(type!=='location'){
seachSelectData.data={[type]:typeData.id}
}else{
seachSelectData.data={[type]:typeData}
}
}
getDataList(seachSelectData.data)
window.addEventListener('scroll', downLoadMore, true);