xujing 5 年之前
父節點
當前提交
3967b0fa98
共有 2 個檔案被更改,包括 4 行新增2 行删除
  1. 2
    0
      src/pages/Index.jsx
  2. 2
    2
      src/pages/Monitor.jsx

+ 2
- 0
src/pages/Index.jsx 查看文件

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

+ 2
- 2
src/pages/Monitor.jsx 查看文件

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