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

修复marLTemp变量未清空的bug

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

View File

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