Commit 68c58c9e authored by 邓超's avatar 邓超

fix: 修改web配置地图组件升级写死问题

parent df0b851a
Pipeline #66556 passed with stages
......@@ -108,7 +108,7 @@ const WebConfigPage = props => {
),
].flat(2);
if (!canceled.cancel) {
console.log(websArr);
console.log(websArr, 'websArr');
setWebs(websArr);
if (!curWeb) setCurWeb(websArr[0]);
setLoading(false);
......@@ -342,7 +342,7 @@ const WebConfigPage = props => {
<div style={{ display: 'inline-block', float: 'right', marginTop: '-15px' }}>
<strong style={{ marginRight: '15px' }}>
地图组件数量
{tabPaneItem.existMapComponent < 9 ? (
{tabPaneItem.existMapComponent < tabPaneItem.mapComponent ? (
<Tooltip title="点击一键修复" placement="topRight">
<span style={{ color: 'red' }} onClick={() => SyncMap(tabPaneItem)}>
{tabPaneItem.existMapComponent}
......@@ -358,7 +358,7 @@ const WebConfigPage = props => {
{tabPaneItem.existMapComponent}
</span>
<span>/</span>
{tabPaneItem.existMapComponent !== 9 ? (
{tabPaneItem.existMapComponent !== tabPaneItem.mapComponent ? (
<span style={{ color: '#1890ff' }} onClick={() => SyncMap(tabPaneItem)}>
{tabPaneItem.existMapComponent}
</span>
......
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