Bladeren bron

fix: 解决security页面地图无法铺满页面问题

sequoia tungfang 2 dagen geleden
bovenliggende
commit
390af19d96

+ 1 - 1
src/components/TongzhouTrafficMap.vue

@@ -78,7 +78,7 @@ export default {
         this.AMap = AMap;
         this.map = new AMap.Map(this.$refs.mapContainer, {
           zoom: 13,
-          center: [116.6612, 39.9125],
+          center: [116.660874,39.909968],
           mapStyle: "amap://styles/darkblue",
           viewMode: "3D"
         });

+ 1 - 1
src/layouts/DashboardLayout.vue

@@ -192,7 +192,7 @@ export default {
 
 /* 特殊模式下的网格变体 (通过 layoutClass 触发) */
 .main-layout.special-situation-monitoring {
-    grid-template-columns: 500px 1fr 480px;
+    grid-template-columns: 500px 1fr 0px;
 }
 
 /* --- 区域容器设定 --- */

+ 5 - 3
src/views/SpecialSituationMonitoring.vue

@@ -1,5 +1,5 @@
 <template>
-    <DashboardLayout>
+    <DashboardLayout layoutClass="special-situation-monitoring">
         <!-- 天气 -->
         <template #header-left>
             <WeatherWidget />
@@ -37,8 +37,10 @@
 
         <template #center>
             <!-- 地图 -->
-            <TongzhouTrafficMap amapKey="db2da7e3e248c3b2077d53fc809be63f"
-                securityJsCode="a7413c674852c5eaf01d90813c5b7ef6" />
+            <TongzhouTrafficMap
+                amapKey="db2da7e3e248c3b2077d53fc809be63f"
+                securityJsCode="a7413c674852c5eaf01d90813c5b7ef6"
+            />
         </template>
 
         <template #dialogs>