diff --git a/frontend/src/pages/admin/index.vue b/frontend/src/pages/admin/index.vue
index 08b01ee..51964f2 100644
--- a/frontend/src/pages/admin/index.vue
+++ b/frontend/src/pages/admin/index.vue
@@ -558,8 +558,9 @@ function updateMapOption() {
},
formatter: (params: any) => {
if (params.data && params.data.count > 0) {
+ const displayName = worldNameMap[params.name] || params.name
return `
-
${params.name}
+
${displayName}
${t('admin.online')}: ${params.data.online}
@@ -574,44 +575,42 @@ function updateMapOption() {
`
}
+ const displayName = worldNameMap[params.name] || params.name
return `
-
${params.name}
+
${displayName}
${t('admin.noUserData')}
`
},
},
- geo: {
- map: 'world',
- roam: true,
- zoom: 1.2,
- nameMap: worldNameMap,
- label: {
- show: false,
- },
- emphasis: {
- label: {
- show: true,
- color: dark ? '#f8fafc' : '#0f172a',
- fontSize: 11,
- fontWeight: 600,
- },
- itemStyle: {
- areaColor: dark ? '#334155' : '#f1f5f9',
- borderColor: dark ? '#475569' : '#94a3b8',
- borderWidth: 1,
- },
- },
- itemStyle: {
- areaColor: dark ? '#1e293b' : '#e2e8f0',
- borderColor: dark ? '#334155' : '#cbd5e1',
- borderWidth: 0.5,
- },
- },
series: [
{
name: t('admin.userDistribution'),
type: 'map',
- geoIndex: 0,
+ map: 'world',
+ roam: true,
+ zoom: 1.2,
+ nameMap: worldNameMap,
+ label: {
+ show: false,
+ },
+ emphasis: {
+ label: {
+ show: true,
+ color: dark ? '#f8fafc' : '#0f172a',
+ fontSize: 11,
+ fontWeight: 600,
+ },
+ itemStyle: {
+ areaColor: dark ? '#334155' : '#f1f5f9',
+ borderColor: dark ? '#475569' : '#94a3b8',
+ borderWidth: 1,
+ },
+ },
+ itemStyle: {
+ areaColor: dark ? '#1e293b' : '#e2e8f0',
+ borderColor: dark ? '#334155' : '#cbd5e1',
+ borderWidth: 0.5,
+ },
data: seriesData,
},
],