Commit 5885f7ff authored by liwenhong's avatar liwenhong

style:map

parent 93cbb806
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
}); });
} }
}, },
async created() { async mounted() {
// 已载入高德地图API,则直接初始化地图 // 已载入高德地图API,则直接初始化地图
if (window.AMap && window.AMapUI) { if (window.AMap && window.AMapUI) {
this.initMap(); this.initMap();
...@@ -205,12 +205,12 @@ export default { ...@@ -205,12 +205,12 @@ export default {
.mapContainer { .mapContainer {
height: 100%; height: 100%;
width: 100%; width: 100%;
display: flex; // display: flex;
flex-direction: row; // flex-direction: column;
.mapWrapper { .mapWrapper {
position: relative; position: relative;
width: 80%; width: 80%;
height: 100%; height: 30vh;
.search { .search {
position: absolute; position: absolute;
top: 10px; top: 10px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment