From 18122306239051eda39ffa394e30144ac77a3dd9 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 22 Jul 2021 21:06:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E8=B7=A8=E5=9F=9F=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Info.vue | 4 ++-- vue.config.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/Info.vue b/src/views/Info.vue index 83f45bd7..65689e45 100644 --- a/src/views/Info.vue +++ b/src/views/Info.vue @@ -20,9 +20,9 @@ export default { }, mounted() { this.$http.get('/api/node_info', { crossdomain: true }).then(response => { - this.data.info = response.data + this.info = response.data }).catch(e => { - this.errors.push(e) + console.log(e) }) }, } diff --git a/vue.config.js b/vue.config.js index 7abe292e..bb7a4f76 100644 --- a/vue.config.js +++ b/vue.config.js @@ -46,8 +46,8 @@ module.exports = { transpileDependencies: ['vue-echarts', 'resize-detector'], devServer: { proxy: { - api: { - target: 'https://api.cosmos.network', + '/api': { + target: 'https://lcd-cosmos.cosmostation.io/', changeOrigin: true, pathRewrite: { '^/api': '',