Browse Source

进入图表编辑界面请求数据源列表

zhuth 7 years ago
parent
commit
3166c6f586
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/components/chartDesigner/layout.jsx

+ 1 - 0
src/components/chartDesigner/layout.jsx

@@ -11,6 +11,7 @@ class ChartDesigner extends React.Component {
         const { dispatch } = this.props;
         const { dispatch } = this.props;
         const { code } = this.props.match.params;
         const { code } = this.props.match.params;
         dispatch({ type: 'chartDesigner/reset' });
         dispatch({ type: 'chartDesigner/reset' });
+        dispatch({ type: 'dataSource/fetchList' });
         if(code !== 'create') {
         if(code !== 'create') {
             dispatch({ type: 'chart/remoteDetail', code: code });
             dispatch({ type: 'chart/remoteDetail', code: code });
             dispatch({ type: 'chart/remoteGroupList', code: code });
             dispatch({ type: 'chart/remoteGroupList', code: code });