diff --git a/package.json b/package.json index 4ae9120..1ba6a07 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "test:ci": "npm run lint && npm run test:unit" }, "dependencies": { - "avue-plugin-map": "^1.0.1", + "@smallwei/avue": "^2.9.13", "axios": "0.18.1", "core-js": "3.6.5", "echarts": "^4.2.1", diff --git a/src/main.js b/src/main.js index 5055d4e..597d329 100644 --- a/src/main.js +++ b/src/main.js @@ -44,8 +44,9 @@ Vue.use(VueParticles) Vue.config.productionTip = false -import AvueMap from 'avue-plugin-map' -Vue.use(AvueMap) +import avue from '@smallwei/avue' +import '@smallwei/avue/lib/index.css'; +Vue.use(avue) import LxHeader from "@/components/LxHeader/index" Vue.component('lx-header',LxHeader) diff --git a/src/views/business/component/addStore.vue b/src/views/business/component/addStore.vue index c9e5a93..90d6b6f 100644 --- a/src/views/business/component/addStore.vue +++ b/src/views/business/component/addStore.vue @@ -38,7 +38,7 @@ 地址选择
- +
@@ -171,9 +171,11 @@ export default { }, watch:{ map(newVal){ - this.form.lat = newVal?.location?.lat - this.form.lng = newVal?.location?.lng - this.form.address = newVal?.formattedAddress + console.log(newVal) + if(!newVal) return + this.form.lat = newVal[1] + this.form.lng = newVal[0] + this.form.address = newVal[2] } }, mounted() {