调整调用方

This commit is contained in:
2025-10-31 21:35:09 +08:00
parent 22f633e20b
commit fcd1b1c140
3 changed files with 3 additions and 3 deletions

View File

@@ -167,7 +167,7 @@ const loadData = async () => {
try {
const params = {
page: pagination.currentPage,
pageSize: pagination.pageSize,
page_size: pagination.pageSize, // Changed from pageSize to page_size
...filters,
orderBy: sortOrder.prop,
order: sortOrder.order === 'ascending' ? 'asc' : (sortOrder.order === 'descending' ? 'desc' : undefined),

View File

@@ -358,7 +358,7 @@ export default {
},
async fetchAvailablePlans() {
try {
const response = await apiClient.plans.getPlans({ planType: '自定义任务' });
const response = await apiClient.plans.getPlans({ plan_type: '自定义任务' });
this.availablePlans = response.data.plans.filter(p =>
p.id !== this.planId
);

View File

@@ -168,7 +168,7 @@ export default {
this.error = null;
try {
const response = await apiClient.plans.getPlans({ planType: this.planTypeFilter }); // 传递 planTypeFilter
const response = await apiClient.plans.getPlans({ plan_type: this.planTypeFilter }); // 传递 plan_typeFilter
let fetchedPlans = response.data?.plans || [];
// Default sort by ID ascending
fetchedPlans.sort((a, b) => a.id - b.id);