diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue index 463e7fd9c..1abf0914f 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue @@ -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 diff --git a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue index 6a0476302..7f16cd4f2 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue @@ -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'),