From fd2b10b24510a0d292b05208b24c95178fc82c1a Mon Sep 17 00:00:00 2001 From: zthxxx Date: Sun, 28 Oct 2018 14:53:55 +0800 Subject: [PATCH] fix(TreeTable): fix `Array.prototype.concat` on custom-tree-table page --- src/components/TreeTable/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TreeTable/index.vue b/src/components/TreeTable/index.vue index a48765c8..2ae1814c 100644 --- a/src/components/TreeTable/index.vue +++ b/src/components/TreeTable/index.vue @@ -61,7 +61,7 @@ export default { tmp = this.data } const func = this.evalFunc || treeToArray - const args = this.evalArgs ? Array.concat([tmp, this.expandAll], this.evalArgs) : [tmp, this.expandAll] + const args = this.evalArgs ? [].concat([tmp, this.expandAll], this.evalArgs) : [tmp, this.expandAll] return func.apply(null, args) } },