From 1ff20ceef0f411123555d4539eedfaa18e630cc9 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 28 Jul 2022 14:54:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 3 ++- src/project/saas/AppCountryAlbum/Watermark.vue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index bbe7599a..feeb0dfc 100644 --- a/src/main.js +++ b/src/main.js @@ -29,7 +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(); +// process.env.NODE_ENV == 'development' && new VConsole(); +new VConsole() const app = new Vue({ store, ...App diff --git a/src/project/saas/AppCountryAlbum/Watermark.vue b/src/project/saas/AppCountryAlbum/Watermark.vue index a2171d5a..0468b039 100644 --- a/src/project/saas/AppCountryAlbum/Watermark.vue +++ b/src/project/saas/AppCountryAlbum/Watermark.vue @@ -324,6 +324,7 @@ success: res => { var lat = res.latitude var lng = res.longitude + console.log(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 @@ -335,7 +336,7 @@ }) this.address = { - ...uni.getStorageSync('address'), + ...uni.getStorageSync('address') } this.getWeather(`${data.ad_info.adcode}`)