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) {