File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
resource/template/theme-server-status Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 28
28
< script src ="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/js/bootstrap.min.js "> </ script >
29
29
< script src ="https://cdn.jsdelivr.net/npm/vue@2.6.14 "> </ script >
30
30
< script src ="https://cdn.jsdelivr.net/npm/echarts@5.5.0/dist/echarts.min.js "> </ script >
31
- < script src ="https://cdn.jsdelivr.net/npm/echarts/map/js/world.js " integrity =" md5-ZmUzMzZlOGQyYzk2NTgwNGRlMzRlNTliZDgyYTY1OGUgIC0= " crossorigin =" anonymous " > </ script >
31
+ < script src ="https://cdn.jsdelivr.net/npm/echarts/map/js/world.js "> </ script >
32
32
< script src ="/static/theme-server-status/js/mixin.js?v20240302 "> </ script >
33
33
</ head >
34
34
< body >
Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ <h4 class="modal-title" id="mapChartTitle">{{tr "ServersOnWorldMap"}}</h4>
123
123
console . log ( 'init countryMapChartData not complete' ) ;
124
124
return ;
125
125
}
126
+ const unit = this . language == 'zh-CN' ? '台' : 'servers' ;
126
127
const isMobile = this . checkIsMobile ( ) ;
127
128
const width = isMobile ? 338 : 1102 ;
128
129
const height = isMobile ? 200 : 500 ;
@@ -153,8 +154,7 @@ <h4 class="modal-title" id="mapChartTitle">{{tr "ServersOnWorldMap"}}</h4>
153
154
trigger : 'item' ,
154
155
formatter : function ( params ) {
155
156
if ( params . data && params . data . value > 0 ) {
156
- const unit = this . language == 'zh-CN' ? '台' : ' Servers' ;
157
- return params . name + ' ' + params . data . value + unit ;
157
+ return params . name + ' ' + params . data . value + ' ' + unit ;
158
158
} else {
159
159
return '' ;
160
160
}
You can’t perform that action at this time.
0 commit comments