首页跳转个人房源设置
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user