详情顶部导航跳转
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user