修复:数据统计小数点过长问题

This commit is contained in:
Liu 宇阳
2024-11-11 13:02:57 +08:00
parent 0f8c12ef76
commit 20893e6e30

View File

@@ -102,7 +102,7 @@ const ChartThree: React.FC = () => {
<span className="mr-2 block h-3 w-full max-w-3 rounded-full bg-[#91C8EA]"></span>
<p className="flex w-full justify-between text-sm font-medium text-black dark:text-white">
<span> 访 </span>
<span> {result.newVisitors}% </span>
<span> {result.newVisitors.toFixed(2)}% </span>
</p>
</div>
</div>
@@ -112,7 +112,7 @@ const ChartThree: React.FC = () => {
<span className="mr-2 block h-3 w-full max-w-3 rounded-full bg-[#727cf5]"></span>
<p className="flex w-full justify-between text-sm font-medium text-black dark:text-white">
<span> 访 </span>
<span> {result.oldVisitors}% </span>
<span> {result.oldVisitors.toFixed(2)}% </span>
</p>
</div>
</div>