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:
parent
c687a3f329
commit
0f7f7be946
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user