Ver Fonte

dev feature

Arsekl há 3 anos atrás
pai
commit
1c9bc813b8
1 ficheiros alterados com 2 adições e 2 exclusões
  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) {