1
0
Arsekl 3 лет назад
Родитель
Сommit
1c9bc813b8
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/utils/index.ts

+ 2 - 2
src/utils/index.ts

@@ -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) {