|
@@ -106,7 +106,11 @@ const pagination = ref({
|
|
|
const fetchCategories = async () => {
|
|
|
loading.value = true
|
|
|
try {
|
|
|
- const response = await categoryApi.getCategories(pagination.value)
|
|
|
+ const params = {
|
|
|
+ pageNum: pagination.value.currentPage,
|
|
|
+ pageSize: pagination.value.pageSize,
|
|
|
+ }
|
|
|
+ const response = await categoryApi.getCategories(params)
|
|
|
categories.value = response.data.data
|
|
|
pagination.value.total = response.data.data.total
|
|
|
} catch (error) {
|