| | |
| | | return service.post('/api/student/exampaper/answer/read/' + id); |
| | | } |
| | | |
| | | export const checkWrongInfo = (id,row) => { |
| | | return service.post('/api/student/exampaper/answer/checkWrong',row); |
| | | export const checkWrongInfo = (data) => { |
| | | return service.post('/api/student/exampaper/answer/checkWrong',data); |
| | | } |
| | |
| | | const router = useRouter(); |
| | | |
| | | const checkWrong = (row) => { |
| | | checkWrongInfo(row.id, row).then((res) => { |
| | | const data = { |
| | | examId: row.examId, |
| | | questionType: row.questionType, |
| | | questionId: row.questionId |
| | | }; |
| | | checkWrongInfo(data).then((res) => { |
| | | const {id, examName, score, navbar, titleItems} = res.data; |
| | | gradeStore.setExamInfo({ |
| | | id, |