From 76427d51a079a5fd1f45bf7188249e7a4647ae05 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 14 九月 2020 10:37:25 +0800
Subject: [PATCH] 2020-09-14

---
 src/tabviews/home/index.jsx |   36 +++++++++---------------------------
 1 files changed, 9 insertions(+), 27 deletions(-)

diff --git a/src/tabviews/home/index.jsx b/src/tabviews/home/index.jsx
index cb704df..b1ef4b1 100644
--- a/src/tabviews/home/index.jsx
+++ b/src/tabviews/home/index.jsx
@@ -1,18 +1,15 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
-import {connect} from 'react-redux'
 import echarts from 'echarts/lib/echarts'
 import 'echarts/lib/chart/bar'
-import 'echarts/lib/chart/line'
 import 'echarts/lib/component/tooltip'
-import 'echarts/lib/component/title'
-import 'echarts/lib/component/legend'
-import 'echarts/lib/component/toolbox'
-import 'echarts/lib/component/markPoint'
-import 'echarts/lib/component/markLine'
+// import 'echarts/lib/chart/line'
+// import 'echarts/lib/component/title'
+// import 'echarts/lib/component/legend'
+// import 'echarts/lib/component/toolbox'
+// import 'echarts/lib/component/markPoint'
+// import 'echarts/lib/component/markLine'
 import { Icon, Tabs, Slider } from 'antd'
-// import {refreshTabView, modifyTabview} from '@/store/action'
-// import Api from '@/api'
 import './index.scss'
 
 const { TabPane } = Tabs
@@ -24,9 +21,7 @@
     param: PropTypes.object // 鑿滃崟鍙傛暟
   }
 
-  state = {
-
-  }
+  state = {}
 
   componentDidMount () {
     let myChart = echarts.init(document.getElementById('home'))
@@ -35,7 +30,7 @@
       color: ['#1890ff'],
       tooltip : {
         trigger: 'axis',
-        axisPointer : {            // 鍧愭爣杞存寚绀哄櫒锛屽潗鏍囪酱瑙﹀彂鏈夋晥
+        axisPointer : {    // 鍧愭爣杞存寚绀哄櫒锛屽潗鏍囪酱瑙﹀彂鏈夋晥
           type : ''        // 榛樿涓虹洿绾匡紝鍙�変负锛�'line' | 'shadow'
         }
       },
@@ -315,17 +310,4 @@
   }
 }
 
-const mapStateToProps = (state) => {
-  return {
-    // tabviews: state.tabviews
-  }
-}
-
-const mapDispatchToProps = (dispatch) => {
-  return {
-    // refreshTabView: (refreshTab) => dispatch(refreshTabView(refreshTab)),
-    // modifyTabview: (tabviews) => dispatch(modifyTabview(tabviews))
-  }
-}
-
-export default connect(mapStateToProps, mapDispatchToProps)(Home)
\ No newline at end of file
+export default Home
\ No newline at end of file

--
Gitblit v1.8.0