|
|
@ -16,9 +16,10 @@ const BrandList: FC = () => { |
|
|
|
|
|
|
|
|
|
|
|
const getData = useCallback(async () => { |
|
|
|
const getData = useCallback(async () => { |
|
|
|
try { |
|
|
|
try { |
|
|
|
const res = await brandApi.list(1, 10) |
|
|
|
const res = await brandApi.list(page, 10) |
|
|
|
setTotal(res.total) |
|
|
|
setTotal(res.total) |
|
|
|
setBrands([ |
|
|
|
setBrands([ |
|
|
|
|
|
|
|
...brands, |
|
|
|
...res.list |
|
|
|
...res.list |
|
|
|
]) |
|
|
|
]) |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|