From c5fc734bb1e0ce4ad94e4dffbbba8a1dee9cbf6e Mon Sep 17 00:00:00 2001 From: dayou <853094838@qq.com> Date: Wed, 30 Oct 2024 17:56:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dc=E7=AB=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=8A=A5=E9=94=99=20(#448)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/management/pages/edit/pages/edit/LogicIndex.vue | 1 + web/src/render/stores/question.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/management/pages/edit/pages/edit/LogicIndex.vue b/web/src/management/pages/edit/pages/edit/LogicIndex.vue index 4241506f..b9967eb2 100644 --- a/web/src/management/pages/edit/pages/edit/LogicIndex.vue +++ b/web/src/management/pages/edit/pages/edit/LogicIndex.vue @@ -73,6 +73,7 @@ const handleChange = (name: any) => { :deep(.el-tabs__content) { height: calc(100% - 10px); padding-bottom: 10px; + overflow-y: auto; :deep(el-tab-pane) { height: 100%; overflow: auto; diff --git a/web/src/render/stores/question.js b/web/src/render/stores/question.js index 8e8e9fbf..5e9f750c 100644 --- a/web/src/render/stores/question.js +++ b/web/src/render/stores/question.js @@ -103,7 +103,7 @@ export const useQuestionStore = defineStore('question', () => { const pageIndex = ref(1) // 当前分页的索引 const changeField = ref(null) const changeIndex = computed(() => { - return questionData.value[changeField.value].index + return questionData.value[changeField.value]?.index }) const needHideFields = ref([])