diff --git a/nezha-fronted/src/components/chart/panelChart.vue b/nezha-fronted/src/components/chart/panelChart.vue index aaef3cee1..93efaef74 100644 --- a/nezha-fronted/src/components/chart/panelChart.vue +++ b/nezha-fronted/src/components/chart/panelChart.vue @@ -265,7 +265,7 @@ export default { this.logChartDataFormat() } }).catch(res => { - console.info(res) + // console.info(res) }).finally(() => { this.loading = false }) diff --git a/nezha-fronted/src/components/common/@topology/core/src/core.js b/nezha-fronted/src/components/common/@topology/core/src/core.js index 317fc41c1..ee4997280 100644 --- a/nezha-fronted/src/components/common/@topology/core/src/core.js +++ b/nezha-fronted/src/components/common/@topology/core/src/core.js @@ -2986,7 +2986,6 @@ const Topology = /** @class */ (function () { } this.cache = null this.data = null - console.log(this.options) this.options.on = null window.topology = null this.activeLayer = null diff --git a/nezha-fronted/src/components/common/@topology/core/src/models/point.js b/nezha-fronted/src/components/common/@topology/core/src/models/point.js index a7bcfe7fb..e76deaf25 100644 --- a/nezha-fronted/src/components/common/@topology/core/src/models/point.js +++ b/nezha-fronted/src/components/common/@topology/core/src/models/point.js @@ -47,7 +47,6 @@ const Point = /** @class */ (function () { return Point }()) export { Point } -console.log(132123132123) window.topologyPoint = Point window.Le5leTopologyPoint = Point // # sourceMappingURL=point.js.map diff --git a/nezha-fronted/src/components/common/@topology/core/src/socket.js b/nezha-fronted/src/components/common/@topology/core/src/socket.js index 19f2b8c44..99d9e76e9 100644 --- a/nezha-fronted/src/components/common/@topology/core/src/socket.js +++ b/nezha-fronted/src/components/common/@topology/core/src/socket.js @@ -10,7 +10,7 @@ const Socket = /** @class */ (function () { this.socket = new WebSocket(this.url) this.socket.onmessage = this.cb this.socket.onclose = function () { - console.info('Canvas websocket closed and reconneting...') + // console.info('Canvas websocket closed and reconneting...') _this.init() } } diff --git a/nezha-fronted/src/components/common/honeycomb/hexagonFigureSvg.vue b/nezha-fronted/src/components/common/honeycomb/hexagonFigureSvg.vue index f4af05331..f305c2483 100644 --- a/nezha-fronted/src/components/common/honeycomb/hexagonFigureSvg.vue +++ b/nezha-fronted/src/components/common/honeycomb/hexagonFigureSvg.vue @@ -292,7 +292,7 @@ export default { }, 500) }) }).catch((res) => { - console.info(res) + // console.info(res) }) }, getLayout () { diff --git a/nezha-fronted/src/components/common/js/common.js b/nezha-fronted/src/components/common/js/common.js index 6bf26d6e4..2fc6a0787 100644 --- a/nezha-fronted/src/components/common/js/common.js +++ b/nezha-fronted/src/components/common/js/common.js @@ -40,6 +40,9 @@ export function getTopology (key) { export function setTopology (key, value) { topologyCache[`topology${key}`] = value + if (!value) { + delete topologyCache[`topology${key}`] + } } export function clearTopologyCache () { diff --git a/nezha-fronted/src/components/common/pickTime.vue b/nezha-fronted/src/components/common/pickTime.vue index 8cfe0d54d..ba4d3982c 100644 --- a/nezha-fronted/src/components/common/pickTime.vue +++ b/nezha-fronted/src/components/common/pickTime.vue @@ -97,7 +97,7 @@ export default { this.intervalTimer = setInterval(() => { this.$emit('change', this.searchTime) this.refreshDataFunc() - }, val.value * 1000) + }, val.value * 200) return } if (val && val.value != -1) { @@ -109,7 +109,7 @@ export default { } this.intervalTimer = setInterval(() => { this.getIntervalData(this.interval.value) - }, val.value * 1000) + }, val.value * 200) } }, dropdownHandler (show) { diff --git a/nezha-fronted/src/components/common/project/topologyL5.vue b/nezha-fronted/src/components/common/project/topologyL5.vue index 0777ec4ad..f2b3b3f51 100644 --- a/nezha-fronted/src/components/common/project/topologyL5.vue +++ b/nezha-fronted/src/components/common/project/topologyL5.vue @@ -641,7 +641,6 @@ export default { canvasRegister() }, mounted () { - console.log('mounted') if (!this.fromOverView) { // 从overview来的 加载相应图片 优化首页加载速度 this.addNodeInit() } @@ -2285,7 +2284,6 @@ export default { this.timer4 = null } if (getTopology(this.topologyIndex)) { - console.log(getTopology(this.topologyIndex)) // getTopology(this.topologyIndex).open({ pens: [] }) // getTopology(this.topologyIndex).off('contextmenu', this.onContextMenu) // getTopology(this.topologyIndex).data.pens.forEach(item => { @@ -2362,7 +2360,6 @@ export default { delete StoreData[key] } }) - console.log(le5leStore.get()) // Object.keys(getTopology(this.topologyIndex)).forEach(key => { // getTopology(this.topologyIndex)[key] = null // }) diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue index d7fd8e637..ef3d0759b 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartRightBox.vue @@ -299,7 +299,7 @@ export default { } }).catch(res => { this.$refs['childrenFrom' + this.editChart.datasource].showError() - console.info(res) + // console.info(res) }) }, selectPanel (panel) {