-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
[Bug Report] el-tree memory leak problem #14858
Comments
Translation of this issue: Element UI version2.6.3 OS/Browsers versionWin7 / ie11 Vue version2.6.10 Reproduction Linkhttps://jsfiddle.net/superchangme/z9rswmtp Steps to reproduce
What is Expected?Hopefully, memory will decrease when el-tree is destroyed What is actually happening?If you suspect that there is a memory leak in el-tree under ie, please resolve it |
请回复,急!~~~ |
急呀 怎么办 |
在elTree 代码里发现了多处this.$on监听事件方法,却没有看到相应的$off代码,怀疑和事件未解绑有关。 |
这段在tree-node实例里的watch也没有手动销毁 |
尝试把watch和监听去掉后,也没有明显改善。 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Element UI version
2.6.3
OS/Browsers version
win7 / ie11
Vue version
2.6.10
Reproduction Link
https://jsfiddle.net/superchangme/z9rswmtp
Steps to reproduce
1.使用ie11浏览器打开链接,同时打开任务管理观察iexplore.exe内存变化
2.点击页面中的添加树按钮一次,观察内存增长30MB左右
3.点击多次添加树按钮,观察内存持续增长
4.点击删除树按钮,观察内存并未减少
5.关闭页面,不退出ie浏览器内存依然没有减少。
What is Expected?
希望el-tree销毁时,内存会减少
What is actually happening?
怀疑ie下el-tree存在内存泄漏,请解决
The text was updated successfully, but these errors were encountered: