|
|
@@ -251,7 +251,7 @@ import { objectiveJudge } from '@/api/judge'
|
|
|
import dayjs from 'dayjs'
|
|
|
import { TIME_FORMAT } from '@/utils/common'
|
|
|
import { mapGetters, mapMutations } from 'vuex'
|
|
|
-import { getExamSubmitRecords } from '@/api/record'
|
|
|
+import { getExamSubmitRecordsByUserId } from '@/api/record'
|
|
|
|
|
|
export default Vue.extend({
|
|
|
name: 'ExamPane',
|
|
|
@@ -404,7 +404,7 @@ export default Vue.extend({
|
|
|
this.examId = this.$route.params.examId
|
|
|
|
|
|
// 提交过客观题,说明已经交卷
|
|
|
- getExamSubmitRecords(this.examId).then(({ data }) => {
|
|
|
+ getExamSubmitRecordsByUserId(this.examId).then(({ data }) => {
|
|
|
if (data.result.find((val) => !val.message)) {
|
|
|
this.reenter = true
|
|
|
setTimeout(() => {
|
|
|
@@ -471,7 +471,7 @@ export default Vue.extend({
|
|
|
this.fetchQuestionStem(0)
|
|
|
}
|
|
|
|
|
|
- getExamSubmitRecords(this.examId).then(({ data }) => {
|
|
|
+ getExamSubmitRecordsByUserId(this.examId).then(({ data }) => {
|
|
|
if (data.result.find((val) => val.message)) {
|
|
|
// 提交过代码题,表示已经做完客观题
|
|
|
this.currentQuestionIndex = this.codeQuestionStartIndex
|