mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 21:50:28 +08:00
优化文字
This commit is contained in:
@@ -180,7 +180,7 @@ window.teaweb = {
|
||||
bytesAxis: function (stats, countFunc) {
|
||||
let max = Math.max.apply(this, stats.map(countFunc))
|
||||
let divider = 1
|
||||
let unit = ""
|
||||
let unit = "B"
|
||||
if (max >= Math.pow(1024, 6)) {
|
||||
unit = "E"
|
||||
divider = Math.pow(1024, 6)
|
||||
@@ -583,7 +583,10 @@ window.teaweb = {
|
||||
show: true,
|
||||
trigger: "item",
|
||||
formatter: function (args) {
|
||||
return tooltipFunc.apply(this, [args, values])
|
||||
if (tooltipFunc != null) {
|
||||
return tooltipFunc.apply(this, [args, values])
|
||||
}
|
||||
return null
|
||||
}
|
||||
},
|
||||
grid: {
|
||||
|
||||
Reference in New Issue
Block a user