fix: bug#16436
This commit is contained in:
parent
2ba9542748
commit
d88fed78ed
|
@ -67,7 +67,7 @@ const checkDeviceDelete = async () => {
|
||||||
|
|
||||||
if (item!.selectorValues!.length === 1 && hasDevice) {
|
if (item!.selectorValues!.length === 1 && hasDevice) {
|
||||||
const deviceDetail = deviceResp?.result?.data?.[0]
|
const deviceDetail = deviceResp?.result?.data?.[0]
|
||||||
metadata = JSON.parse(deviceDetail?.metadata || '{}') // 只选中一个设备,以设备物模型为准
|
metadata = JSON.parse(deviceDetail?.deriveMetadata || '{}') // 只选中一个设备,以设备物模型为准
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!hasDevice) { // 某一个设备被删除
|
if (!hasDevice) { // 某一个设备被删除
|
||||||
|
|
Loading…
Reference in New Issue