提交 df49b20d078b365b5e2d2abc27125db618b73dc3

作者 陈帅
1 个父辈 6d789f01

删除冗余代码

... ... @@ -181,7 +181,7 @@ class Center extends PureComponent {
181 181 activeTabKey={tabKey}
182 182 onTabChange={this.onTabChange}
183 183 >
184   - {children}
  184 + {children || tabKey}
185 185 </Card>
186 186 </Col>
187 187 </Row>
... ...
1 1 export default {
2 2 plugins: [
3   - ['umi-plugin-block-dev', {
4   - layout: 'ant-design-pro',
5   - }],
6   - ['umi-plugin-react', {
7   - dva: true,
8   - locale: true,
9   - antd: true,
10   - }]
  3 + [
  4 + 'umi-plugin-block-dev',
  5 + {
  6 + layout: 'ant-design-pro',
  7 + },
  8 + ],
  9 + [
  10 + 'umi-plugin-react',
  11 + {
  12 + dva: true,
  13 + locale: true,
  14 + antd: true,
  15 + },
  16 + ],
11 17 ],
12   -}
  18 +};
... ...
... ... @@ -11,15 +11,8 @@ import styles from './style.less';
11 11
12 12 const { Pie, WaterWave, Gauge, TagCloud } = Charts;
13 13
14   -
15 14 const targetTime = new Date().getTime() + 3900000;
16 15
17   -// use permission as a parameter
18   -const havePermissionAsync = new Promise(resolve => {
19   - // Call resolve on behalf of passed
20   - setTimeout(() => resolve(), 300);
21   -});
22   -
23 16 @connect(({ monitor, loading }) => ({
24 17 monitor,
25 18 loading: loading.models.monitor,
... ...
注册登录 后发表评论