1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-10 12:50:38 +08:00

fix(TreeTable): fix Array.prototype.concat on custom-tree-table page

This commit is contained in:
zthxxx 2018-10-28 14:53:55 +08:00
parent 8330905683
commit fd2b10b245

View File

@ -61,7 +61,7 @@ export default {
tmp = this.data tmp = this.data
} }
const func = this.evalFunc || treeToArray 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) return func.apply(null, args)
} }
}, },