Commit 4c682092e3327c480027ecf6a0e9de1b60166fab
1 parent
bb978773
udpate
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
src/utils/assist.js
| @@ -234,9 +234,7 @@ export function findBrothersComponents (context, componentName, exceptMe = true) | @@ -234,9 +234,7 @@ export function findBrothersComponents (context, componentName, exceptMe = true) | ||
| 234 | let res = context.$parent.$children.filter(item => { | 234 | let res = context.$parent.$children.filter(item => { |
| 235 | return item.$options.name === componentName; | 235 | return item.$options.name === componentName; |
| 236 | }); | 236 | }); |
| 237 | - let index = res.findIndex(item => { | ||
| 238 | - return item._uid === context._uid; | ||
| 239 | - }); | 237 | + let index = res.findIndex(item => item._uid === context._uid); |
| 240 | if (exceptMe) res.splice(index, 1); | 238 | if (exceptMe) res.splice(index, 1); |
| 241 | return res; | 239 | return res; |
| 242 | } | 240 | } |