修复marLTemp变量未清空的bug

This commit is contained in:
lei.jiang
2018-01-22 13:01:43 +08:00
parent ab72ffa940
commit 33344a778f

View File

@@ -4,8 +4,7 @@
*/
'use strict'
import Vue from 'vue'
const marLTemp = []
export default function treeToArray(data, parent, level, expandedAll, item) {
export default function treeToArray(data, parent, level, expandedAll, item, marLTemp = []) {
let tmp = []
Array.from(data).forEach(function(record) {
if (record._expanded === undefined) {