From 9e9a438ff415cd00bdcee565bfb083f30d81be1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Sat, 22 Mar 2025 15:11:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor(Design):=20=E5=B0=86=20QuestionBefore?= =?UTF-8?q?=20=E7=BB=84=E4=BB=B6=E4=B8=AD=E7=9A=84=20option=5Findex=20?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E9=BB=98=E8=AE=A4=E5=80=BC=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 QuestionBefore 组件中 question_type为 0 时的 option_index 字段默认值从空字符串改为 null - 此修改更符合字段的语义,避免使用空字符串表示未选择的选项 --- .../components/QuestionItemAction/QuestionBefore.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Design/components/ActionCompoents/components/QuestionItemAction/QuestionBefore.vue b/src/views/Design/components/ActionCompoents/components/QuestionItemAction/QuestionBefore.vue index e86f912..7829514 100644 --- a/src/views/Design/components/ActionCompoents/components/QuestionItemAction/QuestionBefore.vue +++ b/src/views/Design/components/ActionCompoents/components/QuestionItemAction/QuestionBefore.vue @@ -307,7 +307,7 @@ const addLogicItem = (logIndex, item) => { question_type: 0, is_answer: 1, operator: '', - option_index: '', + option_index: null, relation_question_index: 0, type: 0, is_option_group: 0,