搜索页 详情页跳转设置

This commit is contained in:
2023-07-28 11:52:59 +08:00
parent 65f43ea7db
commit a98e3280d5
5 changed files with 48 additions and 45 deletions

View File

@@ -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
}