diff --git a/public/config.js b/public/config.js
index cdbedcd..796b24f 100644
--- a/public/config.js
+++ b/public/config.js
@@ -21,6 +21,8 @@ window.$$nazhuaConfig = {
// hideWorldMap: false, // 隐藏地图
// hideHomeWorldMap: false, // 隐藏首页地图
// hideDetailWorldMap: false, // 隐藏详情地图
+ // homeWorldMapPosition: 'top', // 首页地图位置 top/bottom
+ // detailWorldMapPosition: 'top', // 详情页地图位置 top/bottom
// hideNavbarServerCount: false, // 隐藏服务器数量
// hideNavbarServerStat: false, // 隐藏服务器统计
// hideListItemStatusDonut: false, // 隐藏列表项的饼图
diff --git a/src/views/detail.vue b/src/views/detail.vue
index 7e189f9..cb42e78 100644
--- a/src/views/detail.vue
+++ b/src/views/detail.vue
@@ -6,11 +6,12 @@
'server--offline': info?.online !== 1,
}"
>
-
+
+
+
+
+
+
@@ -119,6 +126,13 @@ const showWorldMap = computed(() => {
return true;
});
+const worldMapPosition = computed(() => {
+ if (Object.keys(config.nazhua).includes('detailWorldMapPosition')) {
+ return config.nazhua.detailWorldMapPosition;
+ }
+ return 'bottom';
+});
+
function handleWorldMapWidth() {
worldMapWidth.value = Math.max(
Math.min(
diff --git a/src/views/home.vue b/src/views/home.vue
index 6e3e6be..8d1b3f7 100644
--- a/src/views/home.vue
+++ b/src/views/home.vue
@@ -2,10 +2,10 @@
@@ -310,6 +319,13 @@ const showWorldMap = computed(() => {
return true;
});
+const worldMapPosition = computed(() => {
+ if (Object.keys(config.nazhua).includes('homeWorldMapPosition')) {
+ return config.nazhua.homeWorldMapPosition;
+ }
+ return 'top';
+});
+
/**
* 处理窗口大小变化
*/
@@ -365,6 +381,10 @@ onActivated(() => {
align-items: center;
justify-content: center;
}
+
+ .bottom-world-map {
+ margin-top: 30px;
+ }
}
.fitler-group {