Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
litandota opened this issue Dec 21, 2018 · 2 comments
Open

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

litandota opened this issue Dec 21, 2018 · 2 comments

Comments

@litandota
Copy link

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

@zzayne
Copy link
Owner

zzayne commented Dec 24, 2018

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

@litandota
Copy link
Author

litandota commented Dec 24, 2018

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants