summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author陈劲松 <[email protected]>2024-11-15 10:29:15 +0000
committer陈劲松 <[email protected]>2024-11-15 10:29:15 +0000
commiteba239bc3110a2b930468099a59bbf1aebd24cf0 (patch)
tree5061c8ba877e9ba68a679dc5757b293b4c6542fa /src
parent925e9866d60fce9560231a841c63f8afd2b409cb (diff)
fix: 修复自动测试不通过的内容
(cherry picked from commit 5f621784ff9732d7ef69384ef3e3b9f725d6c02c) Co-authored-by: chenjinsong <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue13
-rw-r--r--src/views/entityExplorer/entityGraph/GraphEntityDetail.vue1
-rw-r--r--src/views/entityExplorer/entityList/Row.vue1
3 files changed, 7 insertions, 8 deletions
diff --git a/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue b/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue
index dc75fe00..7eb57c54 100644
--- a/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue
+++ b/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue
@@ -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 => {
diff --git a/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue b/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue
index f2242439..43642359 100644
--- a/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue
+++ b/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue
@@ -186,7 +186,6 @@ export default {
}
},
mounted () {
- console.info(this.node)
this.handleDetailData(this.node)
},
setup (props) {
diff --git a/src/views/entityExplorer/entityList/Row.vue b/src/views/entityExplorer/entityList/Row.vue
index e0d18b9e..09ece5a5 100644
--- a/src/views/entityExplorer/entityList/Row.vue
+++ b/src/views/entityExplorer/entityList/Row.vue
@@ -290,7 +290,6 @@ export default {
},
initTagsData () {
let url = ''
- console.info(this.entity)
switch (this.entity.entityType) {
case ('domain'): {
url = api.entity.entityList.domainTags