Commit b1ce0f4d authored by 田翔's avatar 田翔

fix: 代码优化

parent 63a602b0
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "4.8.0", "version": "4.8.1",
"description": "4.8.0 加载地图尝试修复报错问题", "description": "4.8.1 尝试修复地图",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -196,18 +196,18 @@ const Coordinate = (props) => { ...@@ -196,18 +196,18 @@ const Coordinate = (props) => {
return cityName; return cityName;
} }
if (screenShot && disabled) { // if (screenShot && disabled) {
return ( // return (
<div style={{ width: '100%', height: '150px' }}> // <div style={{ width: '100%', height: '150px' }}>
<ArcGISSceneMap // <ArcGISSceneMap
getMapInfo={getMapInfo} // getMapInfo={getMapInfo}
widgets={[]} // widgets={[]}
token={token} // token={token}
client={token ? client : 'sandbox'} // client={token ? client : 'sandbox'}
/> // />
</div> // </div>
) // )
} // }
return ( return (
<div> <div>
......
...@@ -177,18 +177,18 @@ const Device = (props) => { ...@@ -177,18 +177,18 @@ const Device = (props) => {
} }
}, [presetValue]) }, [presetValue])
if (screenShot && disabled) { // if (screenShot && disabled) {
return ( // return (
<div style={{ width: '100%', height: '120px' }}> // <div style={{ width: '100%', height: '120px' }}>
<ArcGISSceneMap // <ArcGISSceneMap
getMapInfo={getMapInfo} // getMapInfo={getMapInfo}
widgets={[]} // widgets={[]}
token={token} // token={token}
client={token ? client : 'sandbox'} // client={token ? client : 'sandbox'}
/> // />
</div> // </div>
) // )
} // }
return ( return (
<div> <div>
......
...@@ -105,18 +105,18 @@ const DrawArea = (props) => { ...@@ -105,18 +105,18 @@ const DrawArea = (props) => {
} }
}, [presetValue]) }, [presetValue])
if (screenShot && disabled) { // if (screenShot && disabled) {
return ( // return (
<div style={{ width: '100%', height: '150px' }}> // <div style={{ width: '100%', height: '150px' }}>
<ArcGISSceneMap // <ArcGISSceneMap
getMapInfo={getMapInfo} // getMapInfo={getMapInfo}
widgets={[]} // widgets={[]}
token={token} // token={token}
client={token ? client : 'sandbox'} // client={token ? client : 'sandbox'}
/> // />
</div> // </div>
) // )
} // }
return ( return (
<div> <div>
......
...@@ -104,18 +104,18 @@ const DrawPath = (props) => { ...@@ -104,18 +104,18 @@ const DrawPath = (props) => {
} }
}, [presetValue]) }, [presetValue])
if (screenShot && disabled) { // if (screenShot && disabled) {
return ( // return (
<div style={{ width: '100%', height: '150px' }}> // <div style={{ width: '100%', height: '150px' }}>
<ArcGISSceneMap // <ArcGISSceneMap
getMapInfo={getMapInfo} // getMapInfo={getMapInfo}
widgets={[]} // widgets={[]}
token={token} // token={token}
client={token ? client : 'sandbox'} // client={token ? client : 'sandbox'}
/> // />
</div> // </div>
) // )
} // }
return ( return (
<div> <div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment