时间:2021-08-14 08:30:03 | 栏目:vue | 点击:次
如下所示:
export default new Router({ routes: [ { path: '/', redirect:'/login', }, { path: '/login', alias:'/accounts/login', name: '登录', component: () => import('@/views/accounts/login') } ] ``
嗯 就这样写就可以啦 我向来都是简单粗暴~~