From 8d461ef200f36eaa83a692bc479a76b8e64d95e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Fri, 18 Nov 2022 16:39:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Related=20sessions=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E7=B2=BE=E7=AE=80=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/npm/RelatedSessions.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/charts2/charts/npm/RelatedSessions.vue b/src/views/charts2/charts/npm/RelatedSessions.vue index 97c9d4d7..af90ddb3 100644 --- a/src/views/charts2/charts/npm/RelatedSessions.vue +++ b/src/views/charts2/charts/npm/RelatedSessions.vue @@ -108,17 +108,17 @@ export default { divRed.style.width = this.sessionData.serverSessions } else { this.isNoData = true - this.changeErrorOrNodata() + this.changeByErrorOrNodata() } } else { this.showError = true this.errorMsg = res.message - this.changeErrorOrNodata() + this.changeByErrorOrNodata() } }).catch(error => { this.showError = true this.errorMsg = error.message - this.changeErrorOrNodata() + this.changeByErrorOrNodata() }).finally(() => { this.toggleLoading(false) }) @@ -126,7 +126,7 @@ export default { /** * 当无数据或者报错时改变界面样式,出现灰条 */ - changeErrorOrNodata () { + changeByErrorOrNodata () { const divGray = document.getElementById('gray') divGray.style.borderRadius = 4 + 'px' divGray.style.width = '100%'