|
@@ -142,7 +142,7 @@ export default function useTrackTag() {
|
|
function parseQuestionAreas(questions: Question[]) {
|
|
function parseQuestionAreas(questions: Question[]) {
|
|
if (!questions.length) return [];
|
|
if (!questions.length) return [];
|
|
let pictureConfigs = [];
|
|
let pictureConfigs = [];
|
|
- if (markStore.currentTask.hasMarkAreas) {
|
|
|
|
|
|
+ if (markStore.currentTask.hasMarkArea) {
|
|
pictureConfigs = parseMarkQuestionAreas(questions);
|
|
pictureConfigs = parseMarkQuestionAreas(questions);
|
|
} else {
|
|
} else {
|
|
pictureConfigs = parseCardQuestionAreas(questions);
|
|
pictureConfigs = parseCardQuestionAreas(questions);
|
|
@@ -318,6 +318,8 @@ export default function useTrackTag() {
|
|
qnos.includes(`${q.mainNumber}_${q.subNumber}`)
|
|
qnos.includes(`${q.mainNumber}_${q.subNumber}`)
|
|
);
|
|
);
|
|
const areas = parseQuestionAreas(groupQuestions);
|
|
const areas = parseQuestionAreas(groupQuestions);
|
|
|
|
+ console.log(areas);
|
|
|
|
+
|
|
if (!areas.length) return;
|
|
if (!areas.length) return;
|
|
const area = { ...areas[0] };
|
|
const area = { ...areas[0] };
|
|
const imgIndex = area.i - 1;
|
|
const imgIndex = area.i - 1;
|