refactor(Design): 将 QuestionBefore 组件中的 option_index 字段默认值改为 null
- 将 QuestionBefore 组件中 question_type为 0 时的 option_index 字段默认值从空字符串改为 null - 此修改更符合字段的语义,避免使用空字符串表示未选择的选项
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user