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 => {
|
let res = context.$parent.$children.filter(item => {
|
||||||
return item.$options.name === componentName;
|
return item.$options.name === componentName;
|
||||||
});
|
});
|
||||||
let index = res.findIndex(item => {
|
let index = res.findIndex(item => item._uid === context._uid);
|
||||||
return item._uid === context._uid;
|
|
||||||
});
|
|
||||||
if (exceptMe) res.splice(index, 1);
|
if (exceptMe) res.splice(index, 1);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue