diff --git a/front/src/views/capabilityCloud/components/KnowledgeBase.vue b/front/src/views/capabilityCloud/components/KnowledgeBase.vue index 0ed41eab..0a80ecf9 100644 --- a/front/src/views/capabilityCloud/components/KnowledgeBase.vue +++ b/front/src/views/capabilityCloud/components/KnowledgeBase.vue @@ -39,11 +39,14 @@ }, ]) KnowledgeBaseStatic().then((res) => { - console.log(res.data.data) contentBoxData.value = res.data.data - console.log(contentBoxData.value) - contentBox.value[1].num = contentBoxData.value[0].amount - contentBox.value[0].num = contentBoxData.value[1].amount + contentBoxData.value.forEach((item) => { + if (item.type == '知识库上架总量') { + contentBox.value[0].num = item.amount + } else { + contentBox.value[1].num = item.amount + } + }) })