fix: 去除无效代码

This commit is contained in:
刘洪洪
2023-02-17 16:14:38 +08:00
parent 06de8e2bc9
commit 14a24b268a
5 changed files with 0 additions and 7 deletions

View File

@@ -141,7 +141,6 @@ export default {
hoverError (e) { hoverError (e) {
// const dom = document.getElementById('error-content') // const dom = document.getElementById('error-content')
// if (dom) { // if (dom) {
// console.log('---', dom.clientHeight)
// } // }
} }
} }

View File

@@ -98,7 +98,6 @@ export default {
if (val && val.value !== -1) { if (val && val.value !== -1) {
// 切换轮询请求时间频率时,发现有未结束的请求,终止请求 // 切换轮询请求时间频率时,发现有未结束的请求,终止请求
const cancelList = this.$store.state.panel.httpCancel const cancelList = this.$store.state.panel.httpCancel
// console.log('timeRefresh.vue------setRefresh------查看终止数量', cancelList, cancelList.length)
if (cancelList.length > 0) { if (cancelList.length > 0) {
cancelList.forEach((cancel, index) => { cancelList.forEach((cancel, index) => {
cancel() cancel()

View File

@@ -150,14 +150,12 @@ export default {
if (panels && panels.length > 0) { if (panels && panels.length > 0) {
this.panel = panels[0] this.panel = panels[0]
} }
// console.log(this.panel)
if (this.panel.id) { if (this.panel.id) {
if (this.panel.params) { if (this.panel.params) {
this.panel.params = JSON.parse(this.panel.params) this.panel.params = JSON.parse(this.panel.params)
} else { } else {
this.panel.params = {} this.panel.params = {}
} }
// console.log(this.panel)
const allCharts = (await getChartList({ panelId: this.panel.id, pageSize: -1 })).map(chart => { const allCharts = (await getChartList({ panelId: this.panel.id, pageSize: -1 })).map(chart => {
chart.i = chart.id chart.i = chart.id
this.recursionParamsConvert(chart) this.recursionParamsConvert(chart)

View File

@@ -170,7 +170,6 @@ export default {
let linkInfo = null let linkInfo = null
linkInfo = localStorage.getItem(storageKey.linkInfo) linkInfo = localStorage.getItem(storageKey.linkInfo)
linkInfo = JSON.parse(linkInfo) linkInfo = JSON.parse(linkInfo)
// console.log('打印缓存', linkInfo)
const params = { const params = {
startTime: getSecond(this.timeFilter.startTime), startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime) endTime: getSecond(this.timeFilter.endTime)
@@ -183,7 +182,6 @@ export default {
const res = [] const res = []
res[0] = response[0].data res[0] = response[0].data
res[1] = response[1].data res[1] = response[1].data
// console.log('打印数据', res)
if (res[0].code === 200 && res[1].code === 200) { if (res[0].code === 200 && res[1].code === 200) {
this.showError = false this.showError = false

View File

@@ -197,7 +197,6 @@ export default {
const lastCycleTrafficRequest = axios.get(api.npm.overview.appTrafficAnalysis, { params: { ...params, cycle: 1 } }) const lastCycleTrafficRequest = axios.get(api.npm.overview.appTrafficAnalysis, { params: { ...params, cycle: 1 } })
this.toggleLoading(true) this.toggleLoading(true)
Promise.all([currentTrafficRequest, lastCycleTrafficRequest]).then(res => { Promise.all([currentTrafficRequest, lastCycleTrafficRequest]).then(res => {
// console.log('打印数据=====', res)
if (res[0].data.code === 200 && res[1].data.code === 200) { if (res[0].data.code === 200 && res[1].data.code === 200) {
this.showError = false this.showError = false
this.errorMsg = '' this.errorMsg = ''