修复ServerStatus主题Bug (#346)

This commit is contained in:
nap0o
2024-04-09 08:43:35 -04:00
committed by GitHub
parent f3c90bbf59
commit 66b4c88c24
2 changed files with 3 additions and 3 deletions

View File

@@ -123,6 +123,7 @@
console.log('init countryMapChartData not complete');
return;
}
const unit = this.language=='zh-CN' ? '台' : 'servers';
const isMobile = this.checkIsMobile();
const width = isMobile ? 338 : 1102;
const height = isMobile ? 200 : 500;
@@ -153,8 +154,7 @@
trigger: 'item',
formatter: function (params) {
if (params.data && params.data.value > 0) {
const unit = this.language=='zh-CN' ? '台' : ' Servers';
return params.name + ' ' + params.data.value + unit;
return params.name + ' ' + params.data.value + ' ' + unit;
} else {
return '';
}