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: [ | ... | ... |