From b756bbbb8ddac23ac71fb392743e86486b8cf0cb Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Tue, 6 Sep 2022 15:24:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96npm=20=E8=AF=84?= =?UTF-8?q?=E5=88=86=E5=9B=BE=E8=A1=A8=E7=9A=84=E5=88=B7=E6=96=B0=E5=8F=8D?= =?UTF-8?q?=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/npm/NpmAppCategoryScore.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/charts2/charts/npm/NpmAppCategoryScore.vue b/src/views/charts2/charts/npm/NpmAppCategoryScore.vue index 4a139505..fd6f7c01 100644 --- a/src/views/charts2/charts/npm/NpmAppCategoryScore.vue +++ b/src/views/charts2/charts/npm/NpmAppCategoryScore.vue @@ -216,12 +216,16 @@ export default { } }) this.tableData = tableData + }).finally(() => { + this.toggleLoading(false) }) } else { this.tableData = [] this.isNoData = true + this.toggleLoading(false) } - }).finally(() => { + }).catch(e => { + console.error(e) this.toggleLoading(false) }) },