Commit 3ff6d2ce authored by 刘怀志's avatar 刘怀志

地图获取机制修改

parent 8e1f314b
......@@ -45,7 +45,7 @@ export default {
methods: {
// 获取本地配置详情
getConfig() {
getMap(this.userId).then(res => {
getMap('1').then(res => {
this.form = { ...res.data }
})
},
......@@ -53,7 +53,7 @@ export default {
submitForm() {
this.$refs['form'].validate(valid => {
if (valid) {
this.form.userId = this.userId
this.form.id = '1'
updateMap(this.form).then(response => {
this.$modal.msgSuccess('修改成功')
})
......
......@@ -172,12 +172,11 @@ export default {
// 页面加载完之后,加载百度地图
// 加载引入BMap
this.getConfig()
console.log('JJJJJJJJJJJJJJJJJJJJJJJJJJJ', window.parent)
},
methods: {
// 获取本地配置详情
getConfig() {
getMap(this.userId).then(res => {
getMap('1').then(res => {
this.secretKey = res.data.secretKey
this.mapCenter = res.data.mapCenter.split(',')
this.mapLevel = res.data.mapLevel
......
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