From b827f0afad3ed8ddcc5d171ff8896925936fe3ca Mon Sep 17 00:00:00 2001 From: jiannibang <271381693@qq.com> Date: Fri, 3 Feb 2023 14:27:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8A=A5=E9=94=99=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Brand/Brand.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Brand/Brand.vue b/src/views/Brand/Brand.vue index 9950427..ee58127 100644 --- a/src/views/Brand/Brand.vue +++ b/src/views/Brand/Brand.vue @@ -20,7 +20,7 @@ const selectedList = ref([]) Promise.all([getBrandListByFloor()]).then(([_brandList]) => { const recMap = indexList.value.recommendList.reduce((acc, { shopId }) => ({ ...acc, [shopId]: true }), {}) const list = _brandList.data.list - selectedList.value = list.map(({ name, shopList }) => ({ name, shopList: shopList.filter(({ shopId }) => recMap[shopId]) })) + selectedList.value = list.map(({ name, shopList: _shopList }) => ({ name, shopList: _shopList.filter(({ shopId }) => recMap[shopId]) })) }) function handleShop(item) {