张延森 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 {