From 4c682092e3327c480027ecf6a0e9de1b60166fab Mon Sep 17 00:00:00 2001 From: "zhigang.li" Date: Wed, 16 May 2018 10:38:22 +0800 Subject: [PATCH] udpate --- src/utils/assist.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/assist.js b/src/utils/assist.js index 38ecc23d..01424745 100644 --- a/src/utils/assist.js +++ b/src/utils/assist.js @@ -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; }