路由懒加载的写法
方法一:component:import(’…/pages/index.vue’)
方法二:const shopIndex = resolve => require([’@/views/02.shopIndex/shopIndex.vue’], resolve);
component:shopIndex
Vue路由中多人协作,如何将写的路由合并到一起
最新推荐文章于 2024-05-01 17:55:35 发布
路由懒加载的写法
方法一:component:import(’…/pages/index.vue’)
方法二:const shopIndex = resolve => require([’@/views/02.shopIndex/shopIndex.vue’], resolve);
component:shopIndex