소스 검색

fixed card loaing

nikogu 8 년 전
부모
커밋
3ab0043568
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/routes/Dashboard/Workplace.js

+ 2 - 1
src/routes/Dashboard/Workplace.js

@@ -151,7 +151,7 @@ export default class Workplace extends PureComponent {
               bodyStyle={{ padding: 0 }}
             >
               {
-                !projectLoading && notice.length > 0 && notice.map(item => (
+                notice.map(item => (
                   <Card.Grid className={styles.projectGrid} key={item.id}>
                     <Card bodyStyle={{ padding: 0 }} bordered={false}>
                       <Card.Meta
@@ -214,6 +214,7 @@ export default class Workplace extends PureComponent {
               style={{ marginBottom: 24 }}
               bordered={false}
               title="xx 指数"
+              loading={radarData.length === 0}
             >
               <div className={styles.chart}>
                 {