正在显示
3 个修改的文件
包含
16 行增加
和
17 行删除
@@ -181,7 +181,7 @@ class Center extends PureComponent { | @@ -181,7 +181,7 @@ class Center extends PureComponent { | ||
181 | activeTabKey={tabKey} | 181 | activeTabKey={tabKey} |
182 | onTabChange={this.onTabChange} | 182 | onTabChange={this.onTabChange} |
183 | > | 183 | > |
184 | - {children} | 184 | + {children || tabKey} |
185 | </Card> | 185 | </Card> |
186 | </Col> | 186 | </Col> |
187 | </Row> | 187 | </Row> |
1 | export default { | 1 | export default { |
2 | plugins: [ | 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,15 +11,8 @@ import styles from './style.less'; | ||
11 | 11 | ||
12 | const { Pie, WaterWave, Gauge, TagCloud } = Charts; | 12 | const { Pie, WaterWave, Gauge, TagCloud } = Charts; |
13 | 13 | ||
14 | - | ||
15 | const targetTime = new Date().getTime() + 3900000; | 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 | @connect(({ monitor, loading }) => ({ | 16 | @connect(({ monitor, loading }) => ({ |
24 | monitor, | 17 | monitor, |
25 | loading: loading.models.monitor, | 18 | loading: loading.models.monitor, |
请
注册
或
登录
后发表评论