const login = resolve => require(['@/views/login.vue'], resolve)
const Error = resolve => require(['@/views/Error.vue'], resolve)
routes:[{
path: '/login',
name: 'login',
component: login
},{
path: '/Error',
name: 'Error',
component: Error
},]
vue-router路由按需加载
最新推荐文章于 2024-07-10 16:45:43 发布