搜索页 详情页跳转设置
This commit is contained in:
@@ -63,7 +63,7 @@ const routes = [
|
||||
}
|
||||
},
|
||||
{//中介房源
|
||||
path: '/intermediaryHousing/:type?/:data?/:areaItem?/:types?',
|
||||
path: '/intermediaryHousing',
|
||||
component: () => import(/* webpackChunkName: "housing" */ '@/views/housingView/intermediary.vue'),
|
||||
meta: {
|
||||
title: '中介房源',
|
||||
@@ -120,7 +120,7 @@ const router = createRouter({
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
//导航数据
|
||||
if (/['seachPage','needHousing','intermediaryHousing','personHousing']/.test(from.path)) {
|
||||
if (/['needHousing','intermediaryHousing','personHousing']/.test(from.path)) {
|
||||
store.state.routeList.secondaryIndex.title = from.meta.title
|
||||
store.state.routeList.secondaryIndex.path = from.meta.path
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user