详情部分

This commit is contained in:
2023-07-20 19:03:08 +08:00
parent 4adeb65dbd
commit 8cc4549dca
14 changed files with 331 additions and 24 deletions

View File

@@ -1,6 +1,7 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import { setSeoTitle } from '@/utils/util.js'
import store from '@/store'
const routes = [
{
@@ -97,6 +98,13 @@ const router = createRouter({
router.beforeEach((to, from, next) => {
//导航数据
if(/['seachPage','needHousing','intermediaryHousing','personHousing']/.test(from.path)){
store.state.routeList.secondaryIndex.title=from.meta.title
store.state.routeList.secondaryIndex.path=from.path
}
//
next()
let meta = to['meta'] || {}
let title = meta['title']