const Foo = () => import('./Foo.vue')
const router = new VueRouter({ routes: [ { path: '/foo', component: Foo } ] })
实际开发中截图:
const Foo = () => import('./Foo.vue')
const router = new VueRouter({ routes: [ { path: '/foo', component: Foo } ] })
实际开发中截图:
转载于:https://www.cnblogs.com/likewpp/p/10412395.html