NEZ-1695 fix: Explore保存图表后无法实现跳转

This commit is contained in:
zhangyu
2022-03-18 09:39:04 +08:00
parent d5724556c8
commit fb6f94b666
2 changed files with 5 additions and 1 deletions

View File

@@ -226,6 +226,10 @@ export default {
params.x = 0
params.y = 999
}
if (this.from === 'explore') { // explore 新增 放在最后
params.x = 0
params.y = 999
}
if (!params.x && !params.y && this.from === 'chartTemp') { // chartTemp 新增 在第一位
params.x = 0
params.y = 0

View File

@@ -982,7 +982,7 @@ export default {
this.chartData = chart
this.rightBox.show = true
},
createSuccess (type, response, param, panel) { // 添加chart成功
createSuccess (panel) { // 添加chart成功
this.$confirm(this.$t('dashboard.metric.goPanelTip'), this.$t('tip.saveSuccess'), {
confirmButtonText: this.$t('tip.yes'),
cancelButtonText: this.$t('tip.no'),