seeder-st2110-components 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +20 -12
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +20 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2514,17 +2514,20 @@ const NetworkSettingsModal = _ref2 => {
|
|
|
2514
2514
|
|
|
2515
2515
|
// 更新QSFP配置
|
|
2516
2516
|
if (sections.includes('QSFP') && values.QSFP) {
|
|
2517
|
-
const
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2517
|
+
const interfacesData = values.QSFP.map((item, index) => ({
|
|
2518
|
+
// 只有当原始数据中存在id时才包含id
|
|
2519
|
+
...(st2110Interfaces?.[index]?.id !== undefined && {
|
|
2520
|
+
id: st2110Interfaces?.[index]?.id
|
|
2521
|
+
}),
|
|
2522
|
+
ip_address: item.ip_address,
|
|
2523
|
+
...(showNetmask.QSFP ? {
|
|
2524
|
+
netmask: item.netmask
|
|
2525
|
+
} : {})
|
|
2526
|
+
}));
|
|
2527
|
+
const st2110Data = st2110Interfaces.some(iface => 'id' in iface) ? {
|
|
2528
|
+
st2110_interfaces: interfacesData
|
|
2529
|
+
} : {
|
|
2530
|
+
interfaces: interfacesData
|
|
2528
2531
|
};
|
|
2529
2532
|
updatePromises.push(updateSysConfig(st2110Data));
|
|
2530
2533
|
}
|
|
@@ -2559,7 +2562,12 @@ const NetworkSettingsModal = _ref2 => {
|
|
|
2559
2562
|
styles: {
|
|
2560
2563
|
body: {
|
|
2561
2564
|
padding: "16px 24px 8px 24px"
|
|
2562
|
-
}
|
|
2565
|
+
},
|
|
2566
|
+
...(restartRemark !== null && {
|
|
2567
|
+
footer: {
|
|
2568
|
+
paddingBottom: 28
|
|
2569
|
+
}
|
|
2570
|
+
})
|
|
2563
2571
|
},
|
|
2564
2572
|
...modalProps
|
|
2565
2573
|
};
|