vue项目初始化到登录login页面
export default new Router({routes: [{path: '/',redirect:'/login',},{path: '/login',alias:'/accounts/login',name: '登录',component: (...
·
export default new Router({
routes: [
{
path: '/',
redirect:'/login',
},
{
path: '/login',
alias:'/accounts/login',
name: '登录',
component: () => import('@/views/accounts/login')
}
]
``
嗯 就这样写就可以啦 我向来都是简单粗暴~~
更多推荐
已为社区贡献74条内容
所有评论(0)