ZhangXianQiang
2024-07-05 98f494cf633e3acf5c20f3e9de0d708f2a6c2045
src/views/exam-list/data-list/index.vue
@@ -52,7 +52,6 @@
import { getExamInfo } from '@/api/modules/exam.js';
const examStore = useExamStore();
const router = useRouter();
const props = defineProps({
@@ -73,7 +72,7 @@
    type: 'success',
    disabled: false
  },
  3: {
  'finished': {
    text: '已结束',
    type: 'info',
    disabled: true
@@ -84,12 +83,12 @@
  console.log(exam);
  getExamInfo(exam.id).then((res) => {
    examStore.setExamInfo({
      examName: exam.examName
      id: res.data.id,
      examName: res.data.examName,
      suggestTime: res.data.suggestTime,
    });
    examStore.setExamDetail(res.data);
    // examStore.setExamInfo(res.data.examInfo);
    // examStore.setExamDetail(res.data.examQuestionList);
    // examStore.initExam();
    examStore.setExamDetail(res.data.titleList);
    examStore.initExam();
    router.push('/exam');
  }).catch(err => {