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