张延森 3 лет назад
Родитель
Сommit
1e138ffe7f
1 измененных файлов: 3 добавлений и 3 удалений
  1. 3
    3
      src/pages/index/brandList/index.jsx

+ 3
- 3
src/pages/index/brandList/index.jsx Просмотреть файл

@@ -17,9 +17,9 @@ export default withLayout((props) => {
17 17
   }, [])
18 18
 
19 19
   function initData () {
20
-    queryBrandList({ pageSize: 500, cityId: city?.id }).then((res) => {
21
-      const { records } = res
22
-      const lst = (records || []).reduce((prev, cur) => {
20
+    queryBrandList({ cityId: city?.id }).then((res) => {
21
+      const { records, data } = res
22
+      const lst = (data || records || []).reduce((prev, cur) => {
23 23
         if (prev[cur.indexLetter]) {
24 24
           prev[cur.indexLetter].push(cur)
25 25
         } else {