Commit 83768026 by chenshu

fix:修改范围

parent 0cf41ab0
......@@ -108,19 +108,18 @@ class Home extends React.Component {
formatter: (val) => {
return val
},
tickCount: 5,
tickCount: 5,
},
time: {
formatter: (val) => {
return `${val}`
},
range: [0.06, 0.94]
},
studyNum: {
formatter: (val) => {
return val
},
tickCount: 5
tickCount: 5,
}
});
this._chart.axis('time', {
......@@ -374,7 +373,7 @@ class Home extends React.Component {
<div className="study-chart">
<div className="study-title">学习人数与时长
<div className="study-select">
<span className="select-word">{moment().subtract(studyTimeRange, 'day').format('MM.DD')} ~ {moment().format('MM.DD')}</span>
<span className="select-word">{moment().subtract(studyTimeRange - 1, 'day').format('MM.DD')} ~ {moment().format('MM.DD')}</span>
<Select
style={{ width: 88 }}
value={studyTimeRange}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment