diff --git a/src/components/QuickQuote/index.jsx b/src/components/QuickQuote/index.jsx index f1f06ae..e722a91 100644 --- a/src/components/QuickQuote/index.jsx +++ b/src/components/QuickQuote/index.jsx @@ -686,7 +686,8 @@ const QuickQuoteEvent = props => { } const errMsgList = []; - const masterConfigMust = masterConfig.gdsconfigformslave.filter(item => item.bVisible && item.bNotEmpty); + const masterConfigMust = masterConfig?.gdsconfigformslave.filter(item => item.bVisible && item.bNotEmpty); + if (!masterConfigMust) return const checkResult = masterConfigMust.filter(item => !masterData[item.sName]); if (checkResult.length) { errMsgList.push( @@ -1215,6 +1216,7 @@ const QuickQuoteEvent = props => { // 入口 const QuickQuote = baseProps => { const props = QuickQuoteEvent(baseProps); + console.log("🚀 ~ QuickQuote:", props,baseProps) const [treeClassName, setTreeClassName] = useState(""); // 监听页面滚动事件 @@ -2770,7 +2772,8 @@ const ManyComponent = props => { const onCalcPrice = () => { const { state } = props; const { masterData = {}, slaveConfig, slaveData = [], selectedNode = {}, backendConfig = {}, boxModelKey = 0, bestAlgorithm,activeKey } = state; - if (activeKey === 0) { + const {bBox} = selectedNode + if (bBox && activeKey === 0) { const radios = GetBestAlgorithm(props); slaveData[boxModelKey] = { ...slaveData[boxModelKey],