|
|
@@ -3,7 +3,7 @@ import VueRouter from 'vue-router'
|
|
|
import Home from '../pages/Home.vue'
|
|
|
|
|
|
const originalPush = VueRouter.prototype.push
|
|
|
-VueRouter.prototype.push = function push (location) {
|
|
|
+VueRouter.prototype.push = function push(location) {
|
|
|
return originalPush.call(this, location).catch(err => err)
|
|
|
}
|
|
|
|
|
|
@@ -15,7 +15,7 @@ const routes = [
|
|
|
name: 'index',
|
|
|
component: Home
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
path: '/',
|
|
|
name: 'layout',
|
|
|
component: () => import('../views/layout/index.vue'),
|