|
|
@@ -99,7 +99,7 @@ import { QuestionSerializer } from '@/api/types'
|
|
|
import { getQuestionList } from '@/api/question'
|
|
|
import { questionTypeToText } from '@/utils/common'
|
|
|
import MarkdownText from '@/views/exam/components/MarkdownText.vue'
|
|
|
-import { addExamPaperQuestions } from '@/api/exam'
|
|
|
+import { setExamPaperQuestions } from '@/api/exam'
|
|
|
|
|
|
interface Question extends QuestionSerializer {
|
|
|
typeText: string
|
|
|
@@ -215,7 +215,7 @@ export default Vue.extend({
|
|
|
idAndScore.set(val.id, val.score)
|
|
|
})
|
|
|
|
|
|
- addExamPaperQuestions(examId, Object.fromEntries(idAndScore)).then(() => {
|
|
|
+ setExamPaperQuestions(examId, Object.fromEntries(idAndScore)).then(() => {
|
|
|
this.selectQuestionsSuccess = true
|
|
|
setTimeout(() => {
|
|
|
this.$router.push({ name: 'teacher-exam-details' })
|