|
@@ -328,7 +328,7 @@ import { cloneDeep } from "lodash-es";
|
|
|
import { useRoute } from "vue-router";
|
|
|
|
|
|
const route = useRoute();
|
|
|
-const curQuestionIndex = ref<number>(0);
|
|
|
+// const curQuestionIndex = ref<number>(0);
|
|
|
|
|
|
const props = defineProps<{ modal?: boolean; arbitrateIndex?: string }>();
|
|
|
const activeIndex = computed(() => {
|
|
@@ -414,7 +414,7 @@ const willChooseQuestion = (question: any, index: number) => {
|
|
|
if (notInActive(index)) {
|
|
|
return;
|
|
|
}
|
|
|
- curQuestionIndex.value = index;
|
|
|
+ // curQuestionIndex.value = index;
|
|
|
chooseQuestion(question);
|
|
|
};
|
|
|
let sliceImagesWithTrackListCopy = ref([]);
|
|
@@ -503,6 +503,16 @@ function isCurrentQuestion(question: Question) {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
+const curQuestionIndex = computed(() => {
|
|
|
+ return (
|
|
|
+ store.currentTask?.questionList.findIndex(
|
|
|
+ (q) =>
|
|
|
+ q.mainNumber === store.currentQuestion?.mainNumber &&
|
|
|
+ q.subNumber === store.currentQuestion.subNumber
|
|
|
+ ) ?? 0
|
|
|
+ );
|
|
|
+});
|
|
|
+
|
|
|
function isCurrentScore(score: number) {
|
|
|
return store.currentScore === score;
|
|
|
}
|