冲突了

This commit is contained in:
shijingjing
2022-07-28 15:13:39 +08:00
2 changed files with 4 additions and 2 deletions

View File

@@ -29,8 +29,8 @@ Vue.prototype.$cdn = 'https://cdn.cunwuyun.cn/dvcp/h5/';
Object.keys(utils).map((e) => (Vue.prototype['$' + e] = utils[e]));
utils.dict.init({instance: axios})
App.mpType = 'app';
// process.env.NODE_ENV == 'development' && new VConsole();
new VConsole()
process.env.NODE_ENV == 'development' && new VConsole();
// new VConsole()
const app = new Vue({
store,
...App

View File

@@ -325,6 +325,7 @@
var lat = res.latitude
var lng = res.longitude
console.log(res)
alert(JSON.stringify(res))
this.$http.post('/api/appdvcpconfig/apiForward', `https://apis.map.qq.com/ws/geocoder/v1/?location=${lat},${lng}&key=3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY&get_poi=1`).then(res => {
if (res.code === 0) {
const data = res.data.result
@@ -344,6 +345,7 @@
})
},
error: res => {
alert(JSON.stringify(res))
console.log(res)
}
})