Compare commits
3 Commits
994d9b9ee0
...
4f4f1fe422
| Author | SHA1 | Date |
|---|---|---|
|
|
4f4f1fe422 | |
|
|
2249c55986 | |
|
|
8918f1d581 |
File diff suppressed because it is too large
Load Diff
|
|
@ -25,6 +25,7 @@
|
|||
</div>
|
||||
<div class="content">
|
||||
<router-view />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -3,18 +3,26 @@ import Router from 'vue-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({
|
||||
mode: 'history',
|
||||
base: process.env.BASE_URL,
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
redirect:'/home',
|
||||
path: '/',
|
||||
redirect:'/index',
|
||||
},
|
||||
{
|
||||
path: '/home',
|
||||
name: 'home',
|
||||
component: () => import ('./views/Home.vue')
|
||||
path: '/index',
|
||||
name: 'index',
|
||||
component: () => import ('./views/index.vue')
|
||||
},
|
||||
{
|
||||
path: '/stationBuilding',
|
||||
|
|
|
|||
Loading…
Reference in New Issue