udpate
This commit is contained in:
parent
bb97877350
commit
4c682092e3
1 changed files with 1 additions and 3 deletions
|
@ -234,9 +234,7 @@ export function findBrothersComponents (context, componentName, exceptMe = true)
|
|||
let res = context.$parent.$children.filter(item => {
|
||||
return item.$options.name === componentName;
|
||||
});
|
||||
let index = res.findIndex(item => {
|
||||
return item._uid === context._uid;
|
||||
});
|
||||
let index = res.findIndex(item => item._uid === context._uid);
|
||||
if (exceptMe) res.splice(index, 1);
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue