| | |
| | | const routes = [ |
| | | { |
| | | path: '/', |
| | | redirect: '/index' |
| | | redirect: '/login' |
| | | }, |
| | | |
| | | { |
| | |
| | | import { ref, computed } from 'vue'; |
| | | import { defineStore } from 'pinia'; |
| | | export const useGradeStore = defineStore('exam', () => { |
| | | export const useGradeStore = defineStore('grade', () => { |
| | | const examInfo = ref({ |
| | | examId: 1, |
| | | examName: '考试名称', |
| | |
| | | "gradeLevel": null, |
| | | "subjectId": 2, |
| | | "title": "1+1=?", |
| | | "img": '/test_question.png', |
| | | "items": [ |
| | | { |
| | | "prefix": "A", |
| | |
| | | "gradeLevel": null, |
| | | "subjectId": 2, |
| | | "title": "1+1=?", |
| | | "img": '/test_question.png', |
| | | "items": [ |
| | | { |
| | | "prefix": "A", |
| | |
| | | "gradeLevel": null, |
| | | "subjectId": 2, |
| | | "title": "1+1=?", |
| | | "img": '/test_question.png', |
| | | "items": [ |
| | | { |
| | | "prefix": "A", |
| | |
| | | "subjectId": 2, |
| | | "title": "测试音频1", |
| | | "audioFile": '/test.mp3', |
| | | "img": '/test_question.png', |
| | | "items": [ |
| | | { |
| | | "prefix": "A", |
| | |
| | | const activeNames = ref(examDetail.value.map(item => item.questionType)); |
| | | |
| | | const itemClass = (question,type,index) => { |
| | | console.log(question); |
| | | console.log(question.isRight); |
| | | return { |
| | | right: question.isRight, |
| | | wrong: !question.isRight, |