Explorar o código

fix: 表格显示问题

hsun hai 1 ano
pai
achega
5a67c11cd3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      utils/common.go

+ 1 - 1
utils/common.go

@@ -2127,7 +2127,7 @@ func FormatTableDataShowValue(x float64) (res string) {
 		res = xParts[0] + "." + resPart
 	}
 
-	if xDecimals < 2 {
+	if xDecimals <= 2 {
 		xDecimalsStr := xParts[1]
 		x, _ = strconv.ParseFloat(xParts[0]+"."+xDecimalsStr, 64)
 		res = xParts[0] + "." + xDecimalsStr