const login = () =>import('@/views/login');
export default new Router({
routes:[
{
path:'/login',
name:'login',
component:login
}
]
})
看到一遍博客列举了多种方式,我常用上面这种
https://blog.csdn.net/wp_boom/article/details/78799237
const login = () =>import('@/views/login');
export default new Router({
routes:[
{
path:'/login',
name:'login',
component:login
}
]
})
看到一遍博客列举了多种方式,我常用上面这种
https://blog.csdn.net/wp_boom/article/details/78799237