Merge branch 'cherry-pick-d82e69b8' into 'dev-24.04'

CN-1669 fix: 去除链路界面多余的npm接口请求。

See merge request cyber-narrator/cn-ui!79
This commit is contained in:
陈劲松
2024-06-18 06:28:31 +00:00

View File

@@ -122,7 +122,7 @@ export default {
watch: { watch: {
timeFilter: { timeFilter: {
handler () { handler () {
if (this.$route.path === '/panel/networkAppPerformance' || this.$route.path === '/panel/linkMonitor') { if (this.$route.path === '/panel/networkAppPerformance') {
this.$store.commit('resetScoreBase') this.$store.commit('resetScoreBase')
this.queryScoreBase() this.queryScoreBase()
if (this.lineQueryCondition || this.networkOverviewBeforeTab) { if (this.lineQueryCondition || this.networkOverviewBeforeTab) {
@@ -227,7 +227,7 @@ export default {
this.scoreCalculation() this.scoreCalculation()
} }
} }
if (this.$route.path === '/panel/networkAppPerformance' || this.$route.path === '/panel/linkMonitor') { if (this.$route.path === '/panel/networkAppPerformance') {
this.$store.commit('resetScoreBase') this.$store.commit('resetScoreBase')
this.queryScoreBase() this.queryScoreBase()
} }
@@ -422,10 +422,6 @@ export default {
}, },
// 动态查询评分基准 // 动态查询评分基准
queryScoreBase () { queryScoreBase () {
const { name } = this.$route
if (name === fromRoute.linkMonitor) {
return true
}
const params = { const params = {
startTime: this.timeFilter.startTime, startTime: this.timeFilter.startTime,
endTime: this.timeFilter.endTime endTime: this.timeFilter.endTime