Commit 2d3e66c6 authored by 周宏民's avatar 周宏民

fix: 修改历史曲线

parent 31a943d0
......@@ -324,7 +324,7 @@ const HistoryView = (props) => {
const onContrastChange = (value) => {
setContrastOption(value);
// 模式为日时,默认对比时间根据defaultDate判断 是昨天、上月、还是去年
setDatePickerArr([...DefaultDatePicker(value==='day'?defaultDate:value)]);
setDatePickerArr([...DefaultDatePicker(value==='day'&&defaultDate?defaultDate:value)]);
};
// 同期对比模式: 时间段选择
......
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