保存11.9
This commit is contained in:
parent
dd493fdf40
commit
8918f1d581
File diff suppressed because it is too large
Load Diff
|
@ -1,21 +1,28 @@
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Router from 'vue-router'
|
import Router from 'vue-router'
|
||||||
import Home from './views/Home.vue'
|
|
||||||
|
|
||||||
Vue.use(Router)
|
Vue.use(Router)
|
||||||
|
|
||||||
|
const originalPush = Router.prototype.push
|
||||||
|
|
||||||
|
Router.prototype.push = function push (location) {
|
||||||
|
|
||||||
|
return originalPush.call(this, location).catch(err => err)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
export default new Router({
|
export default new Router({
|
||||||
mode: 'history',
|
mode: 'history',
|
||||||
base: process.env.BASE_URL,
|
base: process.env.BASE_URL,
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
redirect:'/home',
|
redirect:'/index',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/home',
|
path: '/index',
|
||||||
name: 'home',
|
name: 'index',
|
||||||
component: () => import ('./views/Home.vue')
|
component: () => import ('./views/index.vue')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/stationBuilding',
|
path: '/stationBuilding',
|
||||||
|
|
Loading…
Reference in New Issue