From ac6bbef6786c74e7a86852b1b8bff7f23e8592d8 Mon Sep 17 00:00:00 2001
From: lohir <3399054449@qq.com>
Date: 星期四, 17 十月 2024 09:59:23 +0800
Subject: [PATCH] 缺考的人无法查看试卷
---
src/views/exam-list/data-list/index.vue | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/views/exam-list/data-list/index.vue b/src/views/exam-list/data-list/index.vue
index 16877c7..8f1c21c 100644
--- a/src/views/exam-list/data-list/index.vue
+++ b/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({
- examId: res.data.id,
+ id: res.data.id,
examName: res.data.examName,
suggestTime: res.data.suggestTime,
});
examStore.setExamDetail(res.data.titleList);
- examStore.initExam();
+ examStore.initExam(res.data.titleList[0].questionType);
router.push('/exam');
}).catch(err => {
@@ -107,4 +106,4 @@
.bottom-item {
margin-right: 30px;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.8.0