详情部分
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user