zhuth 6 лет назад
Родитель
Сommit
491763c618
1 измененных файлов с 1 добавлено и 1 удалено
  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) => {