From 7799b3436220d8b4c72268608488807bcd424acf Mon Sep 17 00:00:00 2001 From: zhanghaiba Date: Wed, 20 Nov 2019 11:06:24 +0800 Subject: [PATCH] Table: fix serious memory leak when use 'row-key' property --- packages/table/src/table.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/table/src/table.vue b/packages/table/src/table.vue index e0061e6282..c4b64a7639 100644 --- a/packages/table/src/table.vue +++ b/packages/table/src/table.vue @@ -655,6 +655,10 @@ }, destroyed() { + // store是一个Vue实例,调用$destroy解绑和释放监听。 + if (this.store) { + this.store.$destroy(); + } this.unbindEvents(); },