提交
This commit is contained in:
parent
d5c86e2038
commit
43e6f61a0d
@ -1,7 +1,5 @@
|
||||
<template>
|
||||
<<<<<<< HEAD
|
||||
<router-view/>
|
||||
=======
|
||||
|
||||
<router-view />
|
||||
<login></login>
|
||||
>>>>>>> 542e853 (提交)
|
||||
|
@ -48,29 +48,29 @@ const routes = [
|
||||
{//个人房源
|
||||
path: '/personHousing',
|
||||
component: () => import(/* webpackChunkName: "housing" */ '@/views/housingView/person.vue'),
|
||||
meta:{
|
||||
title:'个人房源'
|
||||
meta: {
|
||||
title: '个人房源'
|
||||
}
|
||||
},
|
||||
{//中介房源
|
||||
path: '/intermediaryHousing',
|
||||
component: () => import(/* webpackChunkName: "housing" */ '@/views/housingView/intermediary.vue'),
|
||||
meta:{
|
||||
title:'中介房源'
|
||||
meta: {
|
||||
title: '中介房源'
|
||||
}
|
||||
},
|
||||
{//求房源
|
||||
path: '/needHousing',
|
||||
component: () => import(/* webpackChunkName: "housing" */ '@/views/housingView/needHousing.vue'),
|
||||
meta:{
|
||||
title:'求房源'
|
||||
meta: {
|
||||
title: '求房源'
|
||||
}
|
||||
},
|
||||
},
|
||||
{//搜索
|
||||
path:'/seachPage',
|
||||
component:()=> import(/* webpackChunkName: "seachPage" */ '@/views/seachIndex.vue'),
|
||||
meta:{
|
||||
title:'搜索'
|
||||
path: '/seachPage',
|
||||
component: () => import(/* webpackChunkName: "seachPage" */ '@/views/seachIndex.vue'),
|
||||
meta: {
|
||||
title: '搜索'
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -98,17 +98,17 @@ const router = createRouter({
|
||||
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
<<<<<<< HEAD
|
||||
// <<<<<<< HEAD
|
||||
//导航数据
|
||||
if(/['seachPage','needHousing','intermediaryHousing','personHousing']/.test(from.path)){
|
||||
store.state.routeList.secondaryIndex.title=from.meta.title
|
||||
store.state.routeList.secondaryIndex.path=from.path
|
||||
if (/['seachPage','needHousing','intermediaryHousing','personHousing']/.test(from.path)) {
|
||||
store.state.routeList.secondaryIndex.title = from.meta.title
|
||||
store.state.routeList.secondaryIndex.path = from.path
|
||||
}
|
||||
|
||||
//
|
||||
=======
|
||||
// =======
|
||||
console.log(to, from);
|
||||
>>>>>>> 542e853 (提交)
|
||||
// >>>>>>> 542e853 (提交)
|
||||
next()
|
||||
let meta = to['meta'] || {}
|
||||
let title = meta['title']
|
||||
|
@ -1,11 +1,8 @@
|
||||
import axios from 'axios';
|
||||
import QS from 'qs';
|
||||
import { goTologin } from '@/utils/util.js'
|
||||
<<<<<<< HEAD
|
||||
import {showFullScreenLoading,tryHideFullScreenLoading} from './loading'
|
||||
=======
|
||||
import store from '@/store/index';
|
||||
>>>>>>> 542e853 (提交)
|
||||
|
||||
axios.defaults.baseURL = 'https://app.gter.net'
|
||||
// axios.defaults.baseURL = '/index'
|
||||
|
Loading…
x
Reference in New Issue
Block a user