1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-06 01:09:48 +08:00

style: change func name

This commit is contained in:
liugq 2019-03-07 11:20:52 +08:00
parent c687a3f329
commit 0f7f7be946

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) {