diff --git a/core/core-frontend/src/layout/components/Header.vue b/core/core-frontend/src/layout/components/Header.vue
index 6dae89860c..5746ad8fb4 100644
--- a/core/core-frontend/src/layout/components/Header.vue
+++ b/core/core-frontend/src/layout/components/Header.vue
@@ -120,7 +120,7 @@ const copilotConfirm = () => {
wsCache.set('DE-COPILOT-TIPS-CHECK', 'CHECKED')
showOverlayCopilot.value = false
}
-const badgeCount = ref(0)
+const badgeCount = ref('0')
onMounted(() => {
initShowSystem()
@@ -129,7 +129,7 @@ onMounted(() => {
initCopilotBase()
msgCountApi().then(res => {
- badgeCount.value = res?.data || 0
+ badgeCount.value = (res?.data > 99 ? '99+' : res?.data) || '0'
})
})
@@ -190,10 +190,14 @@ onMounted(() => {
-
+
{