fix:删除控制台console

This commit is contained in:
zhangyu
2022-07-15 17:05:03 +08:00
parent 5061a0dd37
commit 60671e1d3b
9 changed files with 9 additions and 11 deletions

View File

@@ -265,7 +265,7 @@ export default {
this.logChartDataFormat() this.logChartDataFormat()
} }
}).catch(res => { }).catch(res => {
console.info(res) // console.info(res)
}).finally(() => { }).finally(() => {
this.loading = false this.loading = false
}) })

View File

@@ -2986,7 +2986,6 @@ const Topology = /** @class */ (function () {
} }
this.cache = null this.cache = null
this.data = null this.data = null
console.log(this.options)
this.options.on = null this.options.on = null
window.topology = null window.topology = null
this.activeLayer = null this.activeLayer = null

View File

@@ -47,7 +47,6 @@ const Point = /** @class */ (function () {
return Point return Point
}()) }())
export { Point } export { Point }
console.log(132123132123)
window.topologyPoint = Point window.topologyPoint = Point
window.Le5leTopologyPoint = Point window.Le5leTopologyPoint = Point
// # sourceMappingURL=point.js.map // # sourceMappingURL=point.js.map

View File

@@ -10,7 +10,7 @@ const Socket = /** @class */ (function () {
this.socket = new WebSocket(this.url) this.socket = new WebSocket(this.url)
this.socket.onmessage = this.cb this.socket.onmessage = this.cb
this.socket.onclose = function () { this.socket.onclose = function () {
console.info('Canvas websocket closed and reconneting...') // console.info('Canvas websocket closed and reconneting...')
_this.init() _this.init()
} }
} }

View File

@@ -292,7 +292,7 @@ export default {
}, 500) }, 500)
}) })
}).catch((res) => { }).catch((res) => {
console.info(res) // console.info(res)
}) })
}, },
getLayout () { getLayout () {

View File

@@ -40,6 +40,9 @@ export function getTopology (key) {
export function setTopology (key, value) { export function setTopology (key, value) {
topologyCache[`topology${key}`] = value topologyCache[`topology${key}`] = value
if (!value) {
delete topologyCache[`topology${key}`]
}
} }
export function clearTopologyCache () { export function clearTopologyCache () {

View File

@@ -97,7 +97,7 @@ export default {
this.intervalTimer = setInterval(() => { this.intervalTimer = setInterval(() => {
this.$emit('change', this.searchTime) this.$emit('change', this.searchTime)
this.refreshDataFunc() this.refreshDataFunc()
}, val.value * 1000) }, val.value * 200)
return return
} }
if (val && val.value != -1) { if (val && val.value != -1) {
@@ -109,7 +109,7 @@ export default {
} }
this.intervalTimer = setInterval(() => { this.intervalTimer = setInterval(() => {
this.getIntervalData(this.interval.value) this.getIntervalData(this.interval.value)
}, val.value * 1000) }, val.value * 200)
} }
}, },
dropdownHandler (show) { dropdownHandler (show) {

View File

@@ -641,7 +641,6 @@ export default {
canvasRegister() canvasRegister()
}, },
mounted () { mounted () {
console.log('mounted')
if (!this.fromOverView) { // 从overview来的 加载相应图片 优化首页加载速度 if (!this.fromOverView) { // 从overview来的 加载相应图片 优化首页加载速度
this.addNodeInit() this.addNodeInit()
} }
@@ -2285,7 +2284,6 @@ export default {
this.timer4 = null this.timer4 = null
} }
if (getTopology(this.topologyIndex)) { if (getTopology(this.topologyIndex)) {
console.log(getTopology(this.topologyIndex))
// getTopology(this.topologyIndex).open({ pens: [] }) // getTopology(this.topologyIndex).open({ pens: [] })
// getTopology(this.topologyIndex).off('contextmenu', this.onContextMenu) // getTopology(this.topologyIndex).off('contextmenu', this.onContextMenu)
// getTopology(this.topologyIndex).data.pens.forEach(item => { // getTopology(this.topologyIndex).data.pens.forEach(item => {
@@ -2362,7 +2360,6 @@ export default {
delete StoreData[key] delete StoreData[key]
} }
}) })
console.log(le5leStore.get())
// Object.keys(getTopology(this.topologyIndex)).forEach(key => { // Object.keys(getTopology(this.topologyIndex)).forEach(key => {
// getTopology(this.topologyIndex)[key] = null // getTopology(this.topologyIndex)[key] = null
// }) // })

View File

@@ -299,7 +299,7 @@ export default {
} }
}).catch(res => { }).catch(res => {
this.$refs['childrenFrom' + this.editChart.datasource].showError() this.$refs['childrenFrom' + this.editChart.datasource].showError()
console.info(res) // console.info(res)
}) })
}, },
selectPanel (panel) { selectPanel (panel) {