|
|
@@ -40,7 +40,9 @@ export function useProduct(tableRef: Ref) {
|
|
|
total: 0,
|
|
|
pageSize: 10,
|
|
|
currentPage: 1,
|
|
|
- background: true
|
|
|
+ background: true,
|
|
|
+ pageSizes: [10, 20, 50, 100],
|
|
|
+ layout: "total, sizes, prev, pager, next, jumper"
|
|
|
});
|
|
|
|
|
|
const categoryOptions = [
|
|
|
@@ -194,7 +196,7 @@ export function useProduct(tableRef: Ref) {
|
|
|
syncStatus?: number;
|
|
|
});
|
|
|
dataList.value = data.list;
|
|
|
- pagination.total = data.total;
|
|
|
+ pagination.total = Number(data.total);
|
|
|
} catch (error) {
|
|
|
console.error("获取商品列表失败:", error);
|
|
|
} finally {
|