@yeeyoon/library 3.1.6 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56,14 +56,12 @@ function InfoCart(props) {
|
|
56
56
|
if (data.content.length > 0) {
|
57
57
|
let monthContribute = data.content[0].last_month_contribute || '';
|
58
58
|
setCardData(data.content[0]);
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
)
|
66
|
-
: setChartData([{ 贡献数据数: 0 }]);
|
59
|
+
setChartData(
|
60
|
+
monthContribute?.split(',').map((item) => ({
|
61
|
+
贡献数据数: parseInt(item.split(':')[1]),
|
62
|
+
name: item.split(':')[0],
|
63
|
+
}))
|
64
|
+
);
|
67
65
|
} else {
|
68
66
|
setCardData(obj);
|
69
67
|
}
|