feat: 预览功能答题完成
- 预览组件功能完善 - 增加对应逻辑文件: - 补全遗失字段 - 纠正 eslint 错误
This commit is contained in:
@@ -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
|
||||
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user