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