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