Compare commits

..

No commits in common. '79e2c64e78e42c613d4e09c1b4cccc3bc20e0ca9' and '4f0650263c5c79306ed805a593355dc81395ed23' have entirely different histories.

  1. 7
      src/views/subjectTest/index.vue

@ -128,7 +128,7 @@ const xnOptionsList = computed(() => {
const selectedOption = ref<{ oid: any; qid: string }[]>(Array(questions.value.length).fill(null)); const selectedOption = ref<{ oid: any; qid: string }[]>(Array(questions.value.length).fill(null));
// //
const selectOption = async (option: any) => { const selectOption = (option: any) => {
if (complete.value == false) { if (complete.value == false) {
if (questions.value.length > 0) { if (questions.value.length > 0) {
const currentQuestion = questions.value[currentQuestionIndex.value]; const currentQuestion = questions.value[currentQuestionIndex.value];
@ -138,11 +138,6 @@ const selectOption = async (option: any) => {
}; };
console.log(selectedOption.value[currentQuestionIndex.value].oid, option); console.log(selectedOption.value[currentQuestionIndex.value].oid, option);
} }
//
const res: any = await checkapi(selectedOption.value[currentQuestionIndex.value]);
if (res.result !== "success") {
ElMessage.error('回答错误')
}
} }
} }
const score = ref(0); // 0 const score = ref(0); // 0

Loading…
Cancel
Save