From bd0f0e00c267dfeaf7434ea8486ce651d9694cc1 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Mon, 09 Oct 2023 10:18:36 +0800
Subject: [PATCH] fix:地图修改
---
public/index.html | 4 ++--
src/views/UVA/index.vue | 22 ++++++++++++++++++++--
2 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/public/index.html b/public/index.html
index 35c8df7..6215bc1 100644
--- a/public/index.html
+++ b/public/index.html
@@ -14,8 +14,8 @@
<!-- <link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />-->
<!-- <script src="https://cdn.bootcss.com/jquery/3.5.0/jquery.js"></script>-->
<script type="text/javascript"
- src="http://api.map.baidu.com/api?type=webgl&v=2.0&ak=U2SoSp52BoVW6bAEMsxQ7Zfe0tuB6VDp"></script>
- <script src="http://api.map.baidu.com/api?v=3.0&ak=U2SoSp52BoVW6bAEMsxQ7Zfe0tuB6VDp"></script>
+ src="https://api.map.baidu.com/api?type=webgl&v=2.0&ak=U2SoSp52BoVW6bAEMsxQ7Zfe0tuB6VDp"></script>
+ <script src="https://api.map.baidu.com/api?v=3.0&ak=U2SoSp52BoVW6bAEMsxQ7Zfe0tuB6VDp"></script>
<script src="https://mapv.baidu.com/build/mapv.min.js"></script>
<script type="text/javascript" src="https://mapv.baidu.com/gl/examples/static/common.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/echarts/map/js/china.js?v=1598903772045"></script> -->
diff --git a/src/views/UVA/index.vue b/src/views/UVA/index.vue
index e572986..087c053 100644
--- a/src/views/UVA/index.vue
+++ b/src/views/UVA/index.vue
@@ -887,7 +887,10 @@
},
mounted() {
- this.initStart()
+ this.$nextTick(() => {
+ this.initStart()
+ })
+
// this.$refs.datePick.focus()
// this.getDate()
// this.flyData()
@@ -2005,7 +2008,22 @@
}
</script>
-<style lang="scss" >
+<style lang="scss" scoped>
+.main-container {
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-box-orient: vertical;
+ -webkit-box-direction: normal;
+ -ms-flex-flow: column;
+ flex-flow: column;
+ min-height: 100%;
+ -webkit-transition: margin-left .28s;
+ transition: margin-left .28s;
+ margin-left: 210px;
+ position: relative;
+ height: 100%;
+}
/deep/.BMap_cpyCtrl {
display: none;
}
--
Gitblit v1.8.0