iview-dynamicRouter icon indicating copy to clipboard operation
iview-dynamicRouter copied to clipboard

业务页面增多 发现热更新超级慢

Open litandota opened this issue 5 years ago • 2 comments

大概有40多个 .vue 文件 最后发现 // 生成路由节点 util.initRouterNode 方法中 menu.component = lazyLoading(menu.component); 这个位置导致的
求教有什么办法解决么?

litandota avatar Dec 21 '18 02:12 litandota

这个是比较老的方式了。关于路由组件异步加载的问题,可以看下官方文档:https://router.vuejs.org/guide/advanced/lazy-loading.html , 但是适配的话,可能要升级vue版本和相关依赖。因为目前的主要精力不在vue开发上,所以这个repo一直没有更新。希望文档能帮到你。

zzayne avatar Dec 24 '18 02:12 zzayne

大大能帮我具体看下么? 这个问题困扰我很久了,本人能力也有限,实在是无法解决啊. 真心跪求帮助。

您认为确实是这个懒加载的方式,影响了热更新速度么? 还是有其他的问题导致的呢

litandota avatar Dec 24 '18 02:12 litandota