品牌列表分页

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 () => {
try {
const res = await brandApi.list(1, 10)
const res = await brandApi.list(page, 10)
setTotal(res.total)
setBrands([
...brands,
...res.list
])
} catch (e) {

Loading…
Cancel
Save