修改初装传值

dev
陈博文 3 years ago
parent f23648ab35
commit 2dbc23d094

@ -368,8 +368,13 @@ const Page = () => {
message.warn('请添加设备物理标志');
return;
}
const deviceList = dataSave.current.map((e: any) => {
return { id: e.id, status: '1' };
let deviceList: any = [];
dataSave.current.forEach((e: any) => {
deviceList.push(e.id);
deviceList = deviceList.concat(e.keys || []);
});
deviceList = deviceList.map((id: any) => {
return { id, status: '1' };
});
const res = await Fetch(`/openi/device/configureDevice`, {
method: 'post',

Loading…
Cancel
Save