张延森 пре 3 година
родитељ
комит
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 {