Compare commits
No commits in common. "4f4f1fe42285d7964658681004ca5ebe0efecfb2" and "994d9b9ee016da3fa2a4a3e8a87621169d9bae2f" have entirely different histories.
4f4f1fe422
...
994d9b9ee0
File diff suppressed because it is too large
Load Diff
|
|
@ -25,7 +25,6 @@
|
|||
</div>
|
||||
<div class="content">
|
||||
<router-view />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -3,26 +3,18 @@ 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:'/index',
|
||||
path: '/',
|
||||
redirect:'/home',
|
||||
},
|
||||
{
|
||||
path: '/index',
|
||||
name: 'index',
|
||||
component: () => import ('./views/index.vue')
|
||||
path: '/home',
|
||||
name: 'home',
|
||||
component: () => import ('./views/Home.vue')
|
||||
},
|
||||
{
|
||||
path: '/stationBuilding',
|
||||
|
|
|
|||
Loading…
Reference in New Issue