From c4c8a7205be84407a37b339d6a904eee1f0e66d0 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Mon, 5 Jul 2021 17:02:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/ChartDiagram/diagram.vue | 2 +- nezha-fronted/src/components/common/mixin/editRigthBox.js | 2 +- nezha-fronted/src/components/page/dashboard/chartBox.vue | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/nezha-fronted/src/components/common/ChartDiagram/diagram.vue b/nezha-fronted/src/components/common/ChartDiagram/diagram.vue index e140236f0..9499cad22 100644 --- a/nezha-fronted/src/components/common/ChartDiagram/diagram.vue +++ b/nezha-fronted/src/components/common/ChartDiagram/diagram.vue @@ -616,7 +616,7 @@ export default { }) Promise.all(promiseArr).then((res) => { getTopology(this.topologyIndex).open(data) - console.log(data) + // console.log(data) getTopology(this.topologyIndex).lock(1) this.objChange = false let flag = false diff --git a/nezha-fronted/src/components/common/mixin/editRigthBox.js b/nezha-fronted/src/components/common/mixin/editRigthBox.js index 324de784f..c088739f6 100644 --- a/nezha-fronted/src/components/common/mixin/editRigthBox.js +++ b/nezha-fronted/src/components/common/mixin/editRigthBox.js @@ -7,7 +7,7 @@ export default { mounted () { if( this.isEdit ) { window.onbeforeunload = () => { - return window.confirm("确认操作吗?") + return "确认离开当前页面吗?未保存的数据将会丢失" } } }, diff --git a/nezha-fronted/src/components/page/dashboard/chartBox.vue b/nezha-fronted/src/components/page/dashboard/chartBox.vue index 09a9ec9f1..4091fcc6b 100644 --- a/nezha-fronted/src/components/page/dashboard/chartBox.vue +++ b/nezha-fronted/src/components/page/dashboard/chartBox.vue @@ -1754,7 +1754,6 @@ export default { created () { this.getSuggestMetric() this.queryMetrics() - console.log(this.isEdit) }, watch: { chart: {