修改bug

This commit is contained in:
GGJ
2024-10-29 14:49:34 +08:00
parent 05a5531b74
commit 8f3f904e6d
5 changed files with 23 additions and 19 deletions

View File

@@ -13,6 +13,9 @@ export const yMethod = (arr: any) => {
} else {
min = Math.floor(minValue / 100) * 100
}
} else if (maxValue == minValue && maxValue < 10 && minValue > 0) {
max = Math.ceil(maxValue / 10) * 10
min = Math.floor(minValue / 10) * 10
} else if (maxValue == minValue && maxValue != 0 && minValue != 0) {
max = Math.ceil(maxValue / 10 + 1) * 10
min = Math.floor(minValue / 10 - 1) * 10