refactor(Design): 将 QuestionBefore 组件中的 option_index 字段默认值改为 null

- 将 QuestionBefore 组件中 question_type为 0 时的 option_index 字段默认值从空字符串改为 null
- 此修改更符合字段的语义,避免使用空字符串表示未选择的选项
This commit is contained in:
陈昱达
2025-03-22 15:11:20 +08:00
parent 67ff854831
commit 9e9a438ff4

View File

@@ -307,7 +307,7 @@ const addLogicItem = (logIndex, item) => {
question_type: 0, question_type: 0,
is_answer: 1, is_answer: 1,
operator: '', operator: '',
option_index: '', option_index: null,
relation_question_index: 0, relation_question_index: 0,
type: 0, type: 0,
is_option_group: 0, is_option_group: 0,