This commit is contained in:
lb
2023-12-28 16:59:43 +08:00
parent 049a0804ac
commit 2722ca6122
11 changed files with 43 additions and 37 deletions

View File

@@ -15,8 +15,6 @@ const GoodRateChart = (props) => {
const [dateType, setDateType] = useState("day");
const cutting = useSelector((state) => state.cutting);
console.log("cutting chart", dateType, cutting.chart[dateType]);
useEffect(() => {
setUpdateKey(Date.now());
}, [showMore]);
@@ -80,7 +78,6 @@ const GoodRateChart = (props) => {
export default GoodRateChart;
function getOptions(dataList, showMore, dateType) {
console.log("showmore", showMore);
const list = [...dataList].sort((a, b) => a.dataTime - b.dataTime);
// data: Array(7)
// .fill(1)