Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -185,7 +185,7 @@ export const formSchemas: FormSchema[] = [ | @@ -185,7 +185,7 @@ export const formSchemas: FormSchema[] = [ | ||
| 185 | { | 185 | { |
| 186 | label: TaskTypeNameEnum.MODBUS_RTU, | 186 | label: TaskTypeNameEnum.MODBUS_RTU, |
| 187 | value: TaskTypeEnum.MODBUS_RTU, | 187 | value: TaskTypeEnum.MODBUS_RTU, |
| 188 | - disabled: transportType && transportType !== PushWayEnum.TCP, | 188 | + disabled: transportType ? transportType && transportType !== PushWayEnum.TCP : true, |
| 189 | }, | 189 | }, |
| 190 | ], | 190 | ], |
| 191 | onChange(value: TaskTypeEnum) { | 191 | onChange(value: TaskTypeEnum) { |
| @@ -201,7 +201,7 @@ export const formSchemas: FormSchema[] = [ | @@ -201,7 +201,7 @@ export const formSchemas: FormSchema[] = [ | ||
| 201 | field: FormFieldsEnum.PUSH_WAY, | 201 | field: FormFieldsEnum.PUSH_WAY, |
| 202 | component: 'RadioGroup', | 202 | component: 'RadioGroup', |
| 203 | label: '推送方式', | 203 | label: '推送方式', |
| 204 | - defaultValue: PushWayEnum.TCP, | 204 | + defaultValue: PushWayEnum.MQTT, |
| 205 | show: false, | 205 | show: false, |
| 206 | componentProps: { | 206 | componentProps: { |
| 207 | options: [ | 207 | options: [ |