...
|
...
|
@@ -271,7 +271,7 @@ |
271
|
271
|
const value = getFieldsValue();
|
272
|
272
|
const isTCPTransportType = value.transportType === TransportTypeEnum.TCP;
|
273
|
273
|
const doContext = unref(jsonInstance)?.get() || {};
|
274
|
|
- const serviceInputValue = Reflect.get(value, 'serviceInputValue');
|
|
274
|
+ const serviceInputValue = Reflect.get(value, 'serviceInputValue') || {};
|
275
|
275
|
|
276
|
276
|
const getServiceIdentifier = Reflect.get(value, 'serviceIdentifier');
|
277
|
277
|
|
...
|
...
|
@@ -281,7 +281,7 @@ |
281
|
281
|
|
282
|
282
|
if (!isCustomCommand) {
|
283
|
283
|
for (const key of thingsModelKeys) {
|
284
|
|
- if (isNullOrUnDef(serviceInputValue[key]) || '') {
|
|
284
|
+ if (isNullOrUnDef((serviceInputValue || {})[key]) || '') {
|
285
|
285
|
message.warning('服务命令为必填项');
|
286
|
286
|
throw '';
|
287
|
287
|
}
|
...
|
...
|
|