From 1a20a2c7a9e1ba9a0ffb83fb3d09ee7215d260c4 Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期三, 19 六月 2024 09:55:24 +0800 Subject: [PATCH] chore(考试store):简化数据获取 --- src/views/exam/index.vue | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/exam/index.vue b/src/views/exam/index.vue index 61ee1a9..62b56d5 100644 --- a/src/views/exam/index.vue +++ b/src/views/exam/index.vue @@ -82,7 +82,7 @@ <el-dialog v-model="dialogVisible" title="娉ㄦ剰" width="500"> <div class="dialog-container"> <p>璇风‘璁ゆ槸鍚﹂��鍑哄綋鍓嶈�冭瘯</p> - <p>褰撳墠鑰冭瘯璇曞嵎浼氳嚜鍔ㄦ彁浜�,鍚庣画鏃犳硶缁х画浣滅瓟</p> + <p>褰撳墠鑰冭瘯璇曞嵎浼氳嚜鍔ㄦ彁浜�,鍚庣画灏嗘棤娉曠户缁綔绛�</p> </div> <template #footer> <div class="dialog-footer"> @@ -112,13 +112,12 @@ const router = useRouter(); const examStore = useExamStore(); -const { currentType, currentIndex, activeQuestion, examDetail } = storeToRefs(examStore); +const { currentType, currentIndex, examDetail } = storeToRefs(examStore); const typeComponent = { 1: AnswerSingle, 2: AnswerMultiple, }; -examStore.setActiveQuestion(examDetail.value[0].questionList[0]); const dialogVisible = ref(false); @@ -163,7 +162,7 @@ currentIndex.value = 0; } } - findQuestion(currentType.value, currentIndex.value); + // findQuestion(currentType.value, currentIndex.value); } }; -- Gitblit v1.8.0