diff --git a/frontend/src/store/getters.js b/frontend/src/store/getters.js index 6e40c8f092..f336da0de7 100644 --- a/frontend/src/store/getters.js +++ b/frontend/src/store/getters.js @@ -16,6 +16,7 @@ const getters = { errorLogs: state => state.errorLog.logs, sceneData: state => state.dataset.sceneData, table: state => state.dataset.table, + chartTable: state => state.chart.table, hideCustomDs: state => state.dataset.hideCustomDs, loadingMap: state => state.request.loadingMap, currentPath: state => state.permission.currentPath, diff --git a/frontend/src/views/chart/group/Group.vue b/frontend/src/views/chart/group/Group.vue index e7df267002..763562dc20 100644 --- a/frontend/src/views/chart/group/Group.vue +++ b/frontend/src/views/chart/group/Group.vue @@ -558,7 +558,7 @@ export default { showClose: true }) this.treeNode() - this.$store.dispatch('chart/setTable', null) + this.$store.dispatch('chart/setTable', new Date().getTime()) }) } else { // this.$message({ diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index e1e89fb7a5..2e877360bb 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -1,6 +1,7 @@