luohairen
2024-11-12 b802c3a08a4515986cd2ee4430a8c64f25972a04
优化错题详情
2个文件已修改
11 ■■■■ 已修改文件
src/api/modules/grade.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/wrong-list/data-list/index.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/modules/grade.js
@@ -9,6 +9,6 @@
  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);
}
src/views/wrong-list/data-list/index.vue
@@ -78,7 +78,12 @@
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,