收藏同步 距离房源更新
This commit is contained in:
@@ -163,6 +163,13 @@ let pageType=ref('')
|
||||
//跳转
|
||||
let router = useRouter()
|
||||
let watchInfo = () => {
|
||||
let seachData=router.currentRoute.value.query
|
||||
if(pageType.value===4){
|
||||
for(let key in data){
|
||||
store.state.seachSelect['seachPage'][key]=seachData[key]
|
||||
}
|
||||
console.log(store.state.seachSelect)
|
||||
}
|
||||
router.push({
|
||||
path: '/detail',
|
||||
query: {
|
||||
@@ -178,7 +185,7 @@ onMounted(() => {
|
||||
if(type){
|
||||
pageType.value=type
|
||||
}else{
|
||||
pageType.value=routePath.value==='/personHousing'?1:routePath.value==='/intermediaryHousing'?2:routePath.value==='/needHousing'?3:''
|
||||
pageType.value=routePath.value==='/personHousing'?1:routePath.value==='/intermediaryHousing'?2:routePath.value==='/needHousing'?3:routePath.value==='/seachPage'?4:''
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user