fix: 修复自动测试不通过的内容

(cherry picked from commit 5f621784ff)

Co-authored-by: chenjinsong <523037378@qq.com>
This commit is contained in:
陈劲松
2024-11-15 10:29:15 +00:00
parent 925e9866d6
commit eba239bc31
3 changed files with 7 additions and 8 deletions

View File

@@ -202,7 +202,6 @@ export default {
this.toggleLoading(true)
axios.get(url, { params: params }).then(response => {
const res = response.data
console.info(res)
if (response.status === 200) {
this.chartDateObject = res.data.result
this.isNoData = res.data.result.length === 0
@@ -425,11 +424,13 @@ export default {
}
})
}
const series = this.tabs.filter(tab => tab.show)
const yAxisStartValue = getYAxisBeginValue(series)
const _option = this.myChart.getOption()
_option.yAxis[0].startValue = yAxisStartValue
this.myChart.setOption(_option)
if (this.myChart) {
const series = this.tabs.filter(tab => tab.show)
const yAxisStartValue = getYAxisBeginValue(series)
const _option = this.myChart.getOption()
_option.yAxis[0].startValue = yAxisStartValue
this.myChart.setOption(_option)
}
}
if (val === 'active') {
this.tabs.forEach(t => {

View File

@@ -186,7 +186,6 @@ export default {
}
},
mounted () {
console.info(this.node)
this.handleDetailData(this.node)
},
setup (props) {

View File

@@ -290,7 +290,6 @@ export default {
},
initTagsData () {
let url = ''
console.info(this.entity)
switch (this.entity.entityType) {
case ('domain'): {
url = api.entity.entityList.domainTags