自动初始化整体调试完成

This commit is contained in:
pixel
2021-03-04 19:38:07 +08:00
parent 4a995a1c56
commit 184b1a903f
14 changed files with 273 additions and 32 deletions

View File

@@ -7,19 +7,25 @@ Vue.use(Router)
const originalPush = Router.prototype.push
//修改原型对象中的push方法
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
return originalPush.call(this, location).catch(err => err)
}
const baseRouters = [{
path: '/',
redirect: '/login'
},
{
path: '/login',
name: 'login',
component: () =>
import ('@/view/login/login.vue')
}
path: '/',
redirect: '/login'
},
{
path: "/init",
name: 'init',
component: () =>
import('@/view/init/init.vue')
},
{
path: '/login',
name: 'login',
component: () =>
import('@/view/login/login.vue')
}
]
// 需要通过后台数据来生成的组件