Commit 1caa13280ee389285757296c442f9da2575b3438

Authored by ww
1 parent f77f5c45

fix: 任务中心默认为MQTT数据流

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