diff --git a/src/components/BaiduMapPicker/index.js b/src/components/BaiduMapPicker/index.js index fd5754f..3c22673 100644 --- a/src/components/BaiduMapPicker/index.js +++ b/src/components/BaiduMapPicker/index.js @@ -22,21 +22,23 @@ const BaiduMapPicker = ({ visible, onCancel, onConfirm }) => { const scriptId = "baiduMapScript"; if (document.getElementById(scriptId)) return; + window.__onBMapLoaded = () => { + setLoaded(true); + }; + const callback = async () => { await window.base.loadDynamicResource({ url: `https://api.map.baidu.com/api?v=3.0&ak=6lkWDSnHTCcvUenZhovQPER9nkhFfT9A&callback=__onBMapLoaded`, type: "script", attr: { type: "text/javascript" }, }); - setLoaded(true); + }; if (window?.base?.loadDynamicResource) { callback(); return; } - window.__onBMapLoaded = () => { - setLoaded(true); - }; + const script = document.createElement("script"); script.id = scriptId; diff --git a/src/pages/Container/SafetyEvalBusiness/CustomerManage/index.js b/src/pages/Container/SafetyEvalBusiness/CustomerManage/index.js index d4ae3ea..d584c5d 100644 --- a/src/pages/Container/SafetyEvalBusiness/CustomerManage/index.js +++ b/src/pages/Container/SafetyEvalBusiness/CustomerManage/index.js @@ -179,7 +179,7 @@ const CustomerManage = (props) => { width: 220, }, { title: "统一社会信用代码", dataIndex: "creditCode", width: 220 }, - { title: "客户联系人", dataIndex: "principalName", width: 150 }, + { title: "主要负责人", dataIndex: "principalName", width: 150 }, { title: "联系人电话", dataIndex: "principalPhone", width: 160 }, { title: "属地",