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) }) },