|
@@ -5,13 +5,13 @@ import { object2QueryString } from "@/utils/utils";
|
|
|
export function searchCourses({
|
|
|
id = "",
|
|
|
examId = "",
|
|
|
- code = "",
|
|
|
+ courseCode = "",
|
|
|
hasPaper = "",
|
|
|
pageNumber = 1,
|
|
|
pageSize = 10,
|
|
|
}) {
|
|
|
const data = pickBy(
|
|
|
- { id, examId, code, hasPaper, pageNumber, pageSize },
|
|
|
+ { id, examId, courseCode, hasPaper, pageNumber, pageSize },
|
|
|
(v) => v !== ""
|
|
|
);
|
|
|
if (data.examId || data.id)
|