收藏同步 距离房源更新

This commit is contained in:
2023-07-27 12:03:13 +08:00
parent ec456e000d
commit 49f1105e28
7 changed files with 57 additions and 26 deletions

View File

@@ -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:''
}
})