This commit is contained in:
lb 2024-01-11 16:50:55 +08:00
förälder b16ee86def
incheckning 909bd92ee6
2 ändrade filer med 6 tillägg och 3 borttagningar

Visa fil

@ -39,7 +39,10 @@ function GasI(props) {
<div className={cls.chart}>
{showChart && (
<ReactECharts option={options} style={{ height: "100%" }} />
<ReactECharts
option={options}
style={{ height: "100%" }}
/>
)}
{!showChart && (
<div className={cls.gridList}>

Visa fil

@ -13,11 +13,11 @@ function GasChart(props) {
.sort()
.map((key, index) => hisState?.[dataName][key])
: Array(dataSource == "gas-i" ? 8 : 4).fill(Array(7).fill(0));
return (
<div className={cls.gasChart}>
<ReactECharts
key={Math.random()}
key={dataSource}
option={getOptions(
seriesData,
dataSource == "gas-i" ? "天然气I" : "天然气II"