style: change func name

This commit is contained in:
liugq 2019-03-07 11:20:52 +08:00
parent c687a3f329
commit 0f7f7be946
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export function addAttrs(data, { parent = null, preIndex = false, level = 0, exp
})
}
export function cleanAttrs(data, children = 'children') {
export function cleanParentAttr(data, children = 'children') {
data.forEach(item => {
item._parent = null
if (item[children] && item[children].length > 0) {