Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 缺陷修复回流 #466

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
fix: 修复逻辑配置题目隐藏序号跳过
  • Loading branch information
taoshuang committed Dec 31, 2024
commit 708d4383b61947c180d60587866065eec57c256b
3 changes: 2 additions & 1 deletion web/src/render/stores/question.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export const useQuestionStore = defineStore('question', () => {
// 题目列表
const questionList = computed(() => {
let index = 1
const hideMap = needHideFields.value.concat(showLogicHideFields.value)
return (
questionSeq.value &&
questionSeq.value.reduce((pre, item) => {
Expand All @@ -119,7 +120,7 @@ export const useQuestionStore = defineStore('question', () => {
item.forEach((questionKey) => {
const question = { ...questionData.value[questionKey] }
// 开启显示序号
if (question.showIndex) {
if (question.showIndex && !hideMap.includes(questionKey)) {
question.indexNumber = index++
}

Expand Down