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