From 38e23864d2ebee07a5a46ebdc1b6f85f3128eebc Mon Sep 17 00:00:00 2001 From: xiajunjie <752696511@qq.com> Date: Wed, 3 Mar 2021 21:08:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):=E5=8D=87=E7=BA=A7ECha?= =?UTF-8?q?rts=E7=89=88=E6=9C=AC=204.x=20->=205.x=EF=BC=8C=E7=94=A8?= =?UTF-8?q?=E6=96=B0=E7=9A=84=EF=BC=8C=E6=96=B0=E7=9A=84=E5=A5=BD=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 3 +-- frontend/src/main.js | 2 +- frontend/src/views/chart/view/ChartEdit.vue | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 1ff9881e6d..635ea4f43a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -17,8 +17,7 @@ "dependencies": { "@riophae/vue-treeselect": "0.4.0", "axios": "0.18.1", - "echarts": "^4.6.0", - "vue-echarts": "^4.1.0", + "echarts": "^5.0.2", "element-ui": "2.13.0", "fit2cloud-ui": "^0.1.12", "js-cookie": "2.2.0", diff --git a/frontend/src/main.js b/frontend/src/main.js index 12ffe62f75..08eca31d41 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -21,7 +21,7 @@ import message from '@/metersphere/common/js/message' import { left2RightDrag, bottom2TopDrag, right2LeftDrag } from '@/metersphere/common/js/directive' Vue.prototype.$api = api -import echarts from 'echarts' +import * as echarts from 'echarts' Vue.prototype.$echarts = echarts diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 8a89a7143d..a3486cf1c6 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -280,8 +280,8 @@ export default { post('/chart/view/save', view).then(response => { // this.get(response.data.id); this.getData(response.data.id) - this.$store.commit('setChartSceneData', null) - this.$store.commit('setChartSceneData', this.sceneId) + this.$store.dispatch('chart/setChartSceneData', null) + this.$store.dispatch('chart/setChartSceneData', this.sceneId) }) }, getData(id) {