品牌列表分页

main
一杯沧海 1 year ago
parent 7072675740
commit 53a6a6f926
  1. 3
      src/pages/preview/brand/list/list.tsx

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

Loading…
Cancel
Save