详情顶部导航跳转

This commit is contained in:
2023-07-26 19:27:30 +08:00
parent 44d99b26ce
commit 77b5e5e6aa
7 changed files with 44 additions and 47 deletions

View File

@@ -142,8 +142,7 @@ let getLocationData = (data) => {
//监听路由
const route = useRouter()
let routePath = ref('')
routePath.value = route.currentRoute.value.path
// console.log(route)
routePath.value = route.currentRoute.value.meta.path
watchEffect(() => {
seachSchoolBtn.data = store.state.seachTypeData[0] ? store.state.seachTypeData[0].where : []
@@ -174,18 +173,6 @@ let seachList = (item) => {
houseingPageType:routePath.value === '/needHousing'?6:routePath.value === '/intermediaryHousing'?1:routePath.value === '/personHousing'?0:0
}
})
// if (routePath.value === '/') {
// route.push({
// path: '/seachPage',
// query: {
// keyword: seachAllType.keyword
// }
// })
// }else{
// setSeachConditions()
// }
// getDataList(seachAllType)
}
//设置搜索数据
@@ -227,7 +214,7 @@ let setHotSeach = (item) => {
//点击选项
let checkBtn = (data, type, areaItem) => {
console.log(data, type, areaItem)
// console.log(data, type, areaItem)
getDataList(type, data, areaItem)
}