修复marLTemp变量未清空的bug
This commit is contained in:
parent
ab72ffa940
commit
33344a778f
|
@ -4,8 +4,7 @@
|
||||||
*/
|
*/
|
||||||
'use strict'
|
'use strict'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
const marLTemp = []
|
export default function treeToArray(data, parent, level, expandedAll, item, marLTemp = []) {
|
||||||
export default function treeToArray(data, parent, level, expandedAll, item) {
|
|
||||||
let tmp = []
|
let tmp = []
|
||||||
Array.from(data).forEach(function(record) {
|
Array.from(data).forEach(function(record) {
|
||||||
if (record._expanded === undefined) {
|
if (record._expanded === undefined) {
|
||||||
|
|
Loading…
Reference in New Issue