xujing 5 years ago
parent
commit
3967b0fa98
2 changed files with 4 additions and 2 deletions
  1. 2
    0
      src/pages/Index.jsx
  2. 2
    2
      src/pages/Monitor.jsx

+ 2
- 0
src/pages/Index.jsx View File

@@ -10,6 +10,7 @@ import reportImg from '../assets/report.png';
10 10
 import customerImg from '../assets/customer.png';
11 11
 import statisticsImg from '../assets/statistics.png';
12 12
 import borderImg from '../assets/border.png';
13
+import Swiper from './swiper/index';
13 14
 
14 15
 const index = (props) => {
15 16
 
@@ -116,6 +117,7 @@ const index = (props) => {
116 117
                 </Row>
117 118
 
118 119
             </div>
120
+            <Swiper />
119 121
 
120 122
 
121 123
         </>

+ 2
- 2
src/pages/Monitor.jsx View File

@@ -3,7 +3,7 @@ import { Card, Typography, Alert, Row, Col } from 'antd';
3 3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4 4
 import EchartsTest from '../components/EchartsTest';
5 5
 import IndexEcharts from './indexEcharts/index';
6
-import Swiper from './swiper/index';
6
+// import Swiper from './swiper/index';
7 7
 import router from 'umi/router';
8 8
 import request from '../utils/request';
9 9
 import apis from '../services/apis';
@@ -69,7 +69,7 @@ const Monitor = props => {
69 69
           </div>
70 70
         }
71 71
       </div>
72
-      <Swiper />
72
+      {/* <Swiper /> */}
73 73
       <IndexEcharts style={{ width: '100%' }} onReData={(e) => redata(e)} checkData={checkData}></IndexEcharts>
74 74
     </>
75 75
   )