diff --git a/client/src/sections/wuyuanbiaoba/components/TargetDetailModal.jsx b/client/src/sections/wuyuanbiaoba/components/TargetDetailModal.jsx index 7648fd3..64d1505 100644 --- a/client/src/sections/wuyuanbiaoba/components/TargetDetailModal.jsx +++ b/client/src/sections/wuyuanbiaoba/components/TargetDetailModal.jsx @@ -34,8 +34,8 @@ const TargetDetailModal = ({ name: targetData.name || "", radius: targetData.radius || "", isReferencePoint: targetData.isReferencePoint || false, - gradientThreshold: targetData.gradientThreshold || 100, - anchorThreshold: targetData.anchorThreshold || 80, + gradientThreshold: targetData.gradientThreshold, + anchorThreshold: targetData.anchorThreshold, gaussianBlurThreshold: targetData.gaussianBlurThreshold || 3, }); // 默认高级配置不展开 diff --git a/client/src/sections/wuyuanbiaoba/components/TemplateModal.jsx b/client/src/sections/wuyuanbiaoba/components/TemplateModal.jsx index e9e4b5d..3407d1b 100644 --- a/client/src/sections/wuyuanbiaoba/components/TemplateModal.jsx +++ b/client/src/sections/wuyuanbiaoba/components/TemplateModal.jsx @@ -158,7 +158,6 @@ const TemplateModal = ({ const handleOk = async () => { try { - debugger; const values = await form.validateFields(); // 检查是否上传了图片 diff --git a/client/src/sections/wuyuanbiaoba/hooks/useTargetStorage.js b/client/src/sections/wuyuanbiaoba/hooks/useTargetStorage.js index 65ba6dc..ca9c958 100644 --- a/client/src/sections/wuyuanbiaoba/hooks/useTargetStorage.js +++ b/client/src/sections/wuyuanbiaoba/hooks/useTargetStorage.js @@ -87,8 +87,8 @@ export const useTargetStorage = () => { radius: info.radius || 40.0, isReferencePoint: info.base || false, // 根据实际数据结构映射阈值 - gradientThreshold: threshold.gradient || 100, // 梯度阈值 - anchorThreshold: threshold.anchor || 80, // 锚点阈值 + gradientThreshold: threshold.gradient , // 梯度阈值 + anchorThreshold: threshold.anchor, // 锚点阈值 gaussianBlurThreshold: threshold.gauss || 3, binaryThreshold: threshold.binary || 120, // 保留二值化阈值 hasAdvancedConfig: true, // 有配置数据的都认为是有高级配置 @@ -145,8 +145,8 @@ export const useTargetStorage = () => { threshold: { binary: target.binaryThreshold || 120, gauss: target.gaussianBlurThreshold || 1, - gradient: target.gradientThreshold || 100, - anchor: target.anchorThreshold || 80, + gradient: target.gradientThreshold, + anchor: target.anchorThreshold, }, radius: parseFloat(target.radius) || 40.0, id: target.id || target.key, diff --git a/client/src/utils/parseProcessData.js b/client/src/utils/parseProcessData.js index 1d5279d..06f1dcb 100644 --- a/client/src/utils/parseProcessData.js +++ b/client/src/utils/parseProcessData.js @@ -53,7 +53,6 @@ const dataRecursionObj = (dataObj, index, needData, lastKeyObj, nd) => { return gotValue } else { if (keyObj.isGroup) { - debugger for (let item of dataObj[keyObj.prKey]) { const gotValue = dataRecursionObj(item, index + 1, needData, lastKeyObj, nd) if (gotValue) {