From 40aae994a4d938db48dc5365bf2efe4db06caa3b Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Mon, 20 Jun 2022 09:54:47 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=9F=A5=E8=AF=86=E5=BA=93bug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/capabilityCloud/components/KnowledgeBase.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/front/src/views/capabilityCloud/components/KnowledgeBase.vue b/front/src/views/capabilityCloud/components/KnowledgeBase.vue index 0ed41eab..1f91dac9 100644 --- a/front/src/views/capabilityCloud/components/KnowledgeBase.vue +++ b/front/src/views/capabilityCloud/components/KnowledgeBase.vue @@ -39,11 +39,17 @@ }, ]) 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 + } + }) })