fix: 修复课程加载 size 参数超过后端限制的问题
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -566,7 +566,8 @@ const loadPositions = async () => {
|
||||
const loadCourses = async () => {
|
||||
coursesLoading.value = true
|
||||
try {
|
||||
const res = await getManagerCourses({ page: 1, size: 200 })
|
||||
// 后端限制 size 最大 100
|
||||
const res = await getManagerCourses({ page: 1, size: 100 })
|
||||
// API返回格式: { code, message, data: { items, total, page, size } }
|
||||
courses.value = res.data?.items || res.items || []
|
||||
console.log('加载课程列表成功:', courses.value.length, '门课程')
|
||||
|
||||
Reference in New Issue
Block a user