|
|
@@ -94,8 +94,19 @@ export default {
|
|
|
created() {
|
|
|
this.init()
|
|
|
},
|
|
|
+ // beforeRouteEnter(to, from, next) {
|
|
|
+ // const params = window.location.href.split('?')[1].split('&')
|
|
|
+ // function getParams(name = 'name') {
|
|
|
+ // let param
|
|
|
+ // params.map(item => item.includes('name') ? (param = item.split('=')[1]) : '')
|
|
|
+ // return param
|
|
|
+ // }
|
|
|
+ // next()
|
|
|
+ // console.log(getParams())
|
|
|
+ // },
|
|
|
methods: {
|
|
|
init() {
|
|
|
+ // console.log(this.$route.query)
|
|
|
this.initProject()
|
|
|
this.$nextTick(() => {
|
|
|
this.initMap()
|
|
|
@@ -500,7 +511,7 @@ export default {
|
|
|
/* 标记点 */
|
|
|
.leaflet-marker-icon{
|
|
|
background-size: 100%;
|
|
|
-
|
|
|
+ background-repeat: no-repeat;
|
|
|
}
|
|
|
.leaflet-marker-icon.leaflet-marker-draggable{
|
|
|
box-shadow: 0 2px 4px #154c74;
|