seeder-st2110-components 1.1.8 → 1.2.1

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.js CHANGED
@@ -2245,6 +2245,7 @@ const NetworkFieldGroup = _ref => {
2245
2245
  interfaces,
2246
2246
  fieldConfig = {}
2247
2247
  } = _ref;
2248
+ console.log("fieldConfig", fieldConfig);
2248
2249
  // 默认字段配置
2249
2250
  const defaultFieldConfig = {
2250
2251
  name: {
@@ -2264,6 +2265,7 @@ const NetworkFieldGroup = _ref => {
2264
2265
  ...defaultFieldConfig,
2265
2266
  ...fieldConfig
2266
2267
  };
2268
+ console.log("mergedFieldConfig", mergedFieldConfig);
2267
2269
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2268
2270
  children: [/*#__PURE__*/jsxRuntime.jsx(antd.Typography.Title, {
2269
2271
  level: 5,
@@ -2491,7 +2493,7 @@ const NetworkSettingsModal = _ref2 => {
2491
2493
  }
2492
2494
  }
2493
2495
  onClose();
2494
- }, [message, modal, getSysConfig, restart, onClose]);
2496
+ }, [message, modal, getSysConfig, restart, getConfig, sections, onClose]);
2495
2497
  const handleSubmit = react.useCallback(async () => {
2496
2498
  setSubmitLoading(true);
2497
2499
  try {
@@ -2519,7 +2521,11 @@ const NetworkSettingsModal = _ref2 => {
2519
2521
  ...(st2110Interfaces?.[index]?.id !== undefined && {
2520
2522
  id: st2110Interfaces?.[index]?.id
2521
2523
  }),
2522
- ip_address: item.ip_address,
2524
+ ...(st2110Interfaces?.[index]?.ip !== undefined ? {
2525
+ ip: item.ip_address
2526
+ } : {
2527
+ ip_address: item.ip_address
2528
+ }),
2523
2529
  ...(showNetmask.QSFP ? {
2524
2530
  netmask: item.netmask
2525
2531
  } : {})