fix: 去除打印

This commit is contained in:
@changcode
2021-07-05 17:02:30 +08:00
parent b1732cd538
commit c4c8a7205b
3 changed files with 2 additions and 3 deletions

View File

@@ -616,7 +616,7 @@ export default {
}) })
Promise.all(promiseArr).then((res) => { Promise.all(promiseArr).then((res) => {
getTopology(this.topologyIndex).open(data) getTopology(this.topologyIndex).open(data)
console.log(data) // console.log(data)
getTopology(this.topologyIndex).lock(1) getTopology(this.topologyIndex).lock(1)
this.objChange = false this.objChange = false
let flag = false let flag = false

View File

@@ -7,7 +7,7 @@ export default {
mounted () { mounted () {
if( this.isEdit ) { if( this.isEdit ) {
window.onbeforeunload = () => { window.onbeforeunload = () => {
return window.confirm("确认操作吗?") return "确认离开当前页面吗?未保存的数据将会丢失"
} }
} }
}, },

View File

@@ -1754,7 +1754,6 @@ export default {
created () { created () {
this.getSuggestMetric() this.getSuggestMetric()
this.queryMetrics() this.queryMetrics()
console.log(this.isEdit)
}, },
watch: { watch: {
chart: { chart: {