Commit 01e68456329547a19bfa1a7d2c6dc039740c5b39
Merge branch 'fix/DEFECT-1316' into 'main_dev'
fix: 任务中心默认为MQTT数据流 See merge request yunteng/thingskit-front!688
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -185,7 +185,7 @@ export const formSchemas: FormSchema[] = [ |
185 | 185 | { |
186 | 186 | label: TaskTypeNameEnum.MODBUS_RTU, |
187 | 187 | value: TaskTypeEnum.MODBUS_RTU, |
188 | - disabled: transportType && transportType !== PushWayEnum.TCP, | |
188 | + disabled: transportType ? transportType && transportType !== PushWayEnum.TCP : true, | |
189 | 189 | }, |
190 | 190 | ], |
191 | 191 | onChange(value: TaskTypeEnum) { |
... | ... | @@ -201,7 +201,7 @@ export const formSchemas: FormSchema[] = [ |
201 | 201 | field: FormFieldsEnum.PUSH_WAY, |
202 | 202 | component: 'RadioGroup', |
203 | 203 | label: '推送方式', |
204 | - defaultValue: PushWayEnum.TCP, | |
204 | + defaultValue: PushWayEnum.MQTT, | |
205 | 205 | show: false, |
206 | 206 | componentProps: { |
207 | 207 | options: [ | ... | ... |