|
|
@@ -90,7 +90,7 @@ export function getQuestionList(examId: number) {
|
|
|
if (examId === store.getState().loadQuestion.examId) {
|
|
|
return store.getState().loadQuestionList
|
|
|
} else {
|
|
|
- Api.getExamTest(examId).then((res: ReceivedData<ExamSerializer>) => {
|
|
|
+ Api.getByExamId(examId).then((res: ReceivedData<ExamSerializer>) => {
|
|
|
if (res.err === 0) {
|
|
|
const exam = res.res
|
|
|
if (exam && exam.problems) {
|
|
|
@@ -262,7 +262,7 @@ export function getQuestion(examId: string, studentId: string) {
|
|
|
const hide = message.loading("Loading...", 0)
|
|
|
const regPos = /^[0-9]+/;
|
|
|
if (regPos.test(examId)) {
|
|
|
- Api.test(examId as unknown as number, studentId as unknown as number).then(
|
|
|
+ Api.getQuestion(examId as unknown as number, studentId as unknown as number).then(
|
|
|
response => {
|
|
|
hide()
|
|
|
if (response.err === 0) {
|