| | |
| | | import { getExamInfo } from '@/api/modules/exam.js'; |
| | | const examStore = useExamStore(); |
| | | |
| | | |
| | | const router = useRouter(); |
| | | |
| | | const props = defineProps({ |
| | |
| | | type: 'success', |
| | | disabled: false |
| | | }, |
| | | 3: { |
| | | 'finished': { |
| | | text: '已结束', |
| | | type: 'info', |
| | | disabled: true |
| | |
| | | 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 => { |
| | | |