|
@@ -141,9 +141,11 @@ const submitForm = async () => {
|
|
if (formType.value === 'create') {
|
|
if (formType.value === 'create') {
|
|
data.deviceId = props.deviceId
|
|
data.deviceId = props.deviceId
|
|
// data.filePath = data.filePath.join(',')
|
|
// data.filePath = data.filePath.join(',')
|
|
|
|
+ data.type = 'book'
|
|
await IotInfoApi.createIotInfo(data)
|
|
await IotInfoApi.createIotInfo(data)
|
|
message.success(t('common.createSuccess'))
|
|
message.success(t('common.createSuccess'))
|
|
} else {
|
|
} else {
|
|
|
|
+ data.type = 'book'
|
|
await IotInfoApi.updateIotInfo(data)
|
|
await IotInfoApi.updateIotInfo(data)
|
|
message.success(t('common.updateSuccess'))
|
|
message.success(t('common.updateSuccess'))
|
|
}
|
|
}
|