feat: 预览功能答题完成

- 预览组件功能完善
- 增加对应逻辑文件:
- 补全遗失字段
- 纠正 eslint 错误
This commit is contained in:
Huangzhe
2025-03-14 11:43:52 +08:00
parent c37b9aa3fc
commit 199c228fec
31 changed files with 2349 additions and 573 deletions

View File

@@ -24,6 +24,8 @@ export const useQuestionStore = defineStore('questionStore', () => {
);
});
// 答题之后的字段,应该是判断获取对应的字体
const translatedText = computed(() => questionsData.value.language || {});
// 是否显示分页器
const showPage = computed(() => {
return ![102, 104, 105, 201].includes(questions.value[0]?.question_type);
@@ -39,6 +41,7 @@ export const useQuestionStore = defineStore('questionStore', () => {
styleInfo,
page,
pages,
translatedText,
l,
themeColor,
loading,
@@ -46,6 +49,5 @@ export const useQuestionStore = defineStore('questionStore', () => {
localPageTimer,
questions,
showPage
};
});
});