diff --git a/packages/table/src/table.vue b/packages/table/src/table.vue index d517f3878..e4cf4a549 100644 --- a/packages/table/src/table.vue +++ b/packages/table/src/table.vue @@ -443,8 +443,13 @@ } }, - expandRowKeys(newVal) { - this.store.setExpandRowKeys(newVal); + expandRowKeys: { + immediate: true, + handler(newVal) { + if (newVal) { + this.store.setExpandRowKeys(newVal); + } + } } },