From b6584e14c2c0fc0b481335c4c0942b4bc3193412 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 21 Nov 2024 18:00:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B6=88=E6=81=AF=E4=B8=AD=E5=BF=83=E6=A8=A1?= =?UTF-8?q?=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/layout/components/Header.vue | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/core/core-frontend/src/layout/components/Header.vue b/core/core-frontend/src/layout/components/Header.vue index 334df66734..95619db5d3 100644 --- a/core/core-frontend/src/layout/components/Header.vue +++ b/core/core-frontend/src/layout/components/Header.vue @@ -119,6 +119,7 @@ const copilotConfirm = () => { wsCache.set('DE-COPILOT-TIPS-CHECK', 'CHECKED') showOverlayCopilot.value = false } +const badgeCount = ref(0) onMounted(() => { initShowSystem() @@ -127,7 +128,7 @@ onMounted(() => { initCopilotBase() msgCountApi().then(res => { - console.log(res.data) + badgeCount.value = res?.data || 0 }) }) @@ -188,15 +189,17 @@ onMounted(() => { - - - + + + + +