zhuth hace 6 años
padre
commit
491763c618
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/dashboardDesigner/chooseChartBox.jsx

+ 1 - 1
src/components/dashboardDesigner/chooseChartBox.jsx

@@ -60,6 +60,7 @@ class ChooseChartBox extends React.Component {
         const { dispatch, hideBox } = this.props;
         if(selectedRecords.length > 0) {
             dispatch({ type: 'dashboardDesigner/addCharts', charts: selectedRecords });
+            hideBox();
             setTimeout(() => {
                 // 滚动到最底部
                 let viewScrollContent = document.querySelector('.viewlayout');
@@ -68,7 +69,6 @@ class ChooseChartBox extends React.Component {
         }else {
             message.warning('请选择需要填加的图表');
         }
-        hideBox();
     }
 
     onSearch = (list) => {