From 0b7b0e39c16b0f69a59c7db30fee381e49a1a000 Mon Sep 17 00:00:00 2001 From: ival <610568032@qq.com> Date: Tue, 17 Sep 2019 16:53:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4=E9=A6=96=E9=A1=B5=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E7=9A=84=E5=9C=B0=E5=9B=BE=E6=B2=A1=E6=9C=89name?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/baseUrl.js | 4 ++-- src/views/dashboard/echarts/permission.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 2e575c51e..4050e7e22 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -3,9 +3,9 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { // BASE_API = 'https://joylink.club/jlcloud'; - BASE_API = 'https://test.joylink.club/jlcloud'; + // BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.3.5:9000'; // 袁琪 - // BASE_API = 'http://192.168.3.6:9000'; // 旭强 + BASE_API = 'http://192.168.3.6:9000'; // 旭强 // BASE_API = 'http://192.168.3.4:9000' // 琰培 } else { BASE_API = process.env.VUE_APP_BASE_API; diff --git a/src/views/dashboard/echarts/permission.vue b/src/views/dashboard/echarts/permission.vue index ad1e0f60f..7b4446bc2 100644 --- a/src/views/dashboard/echarts/permission.vue +++ b/src/views/dashboard/echarts/permission.vue @@ -132,7 +132,7 @@ export default { initChart() { listUserPermision({pageSize: 9000, pageNum: 1}).then(resp => { this.permissionList = resp.data.list.filter(elem => { return parseInt(elem.status) > 0; }); - this.mapNameList = [...new Set(this.permissionList.map(elem => { return elem.mapName; }))]; + this.mapNameList = [...new Set(this.permissionList.filter(elem => { return elem.mapName; }).map(elem => { return elem.mapName; }))]; this.$nextTick(() => { this.mapName = this.mapNameList[0] || ''; }); }); this.chart = echarts.init(document.getElementById(this.id));