From f0b506856b9fe712e5d8929770aa26afd9725030 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Tue, 1 Jun 2021 18:00:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dasset-detail-addByTemp?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=8C=89=E9=92=AE=E6=97=A0=E6=95=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/rightBox/chartTempBox.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/common/rightBox/chartTempBox.vue b/nezha-fronted/src/components/common/rightBox/chartTempBox.vue index e00f55266..ede50b58b 100644 --- a/nezha-fronted/src/components/common/rightBox/chartTempBox.vue +++ b/nezha-fronted/src/components/common/rightBox/chartTempBox.vue @@ -208,7 +208,7 @@ export default { this.$emit('close', refresh) }, save () { - if (this.prevent_opt.save) { return } ; + if (this.prevent_opt.save) { return } this.prevent_opt.save = true if (!this.transfer.selectedData.length) { this.prevent_opt.save = false @@ -216,11 +216,12 @@ export default { if (this.editChartTemp.varType === 1) { if (this.from !== fromRoute.asset) { // 来自asset且type=1时不校验 this.$message.error(this.$t('dashboard.panel.chartForm.selectAsset')) + return } } else { this.$message.error(this.$t('dashboard.panel.chartForm.selectEndpoint')) + return } - return } } if (this.from === fromRoute.asset && this.editChartTemp.varType === 1) { // 来自asset时取assetId