From 70acbdd7c5af013ef16e50411c02bb74275a50df Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Tue, 3 Feb 2026 15:51:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(notification):=20=E9=99=90=E5=88=B6?= =?UTF-8?q?=E5=85=A8=E5=B1=80=E6=B6=88=E6=81=AF=E6=9C=80=E5=A4=A7=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=95=B0=E9=87=8F=E4=B8=BA1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复通知组件在多次触发时可能显示多条消息的问题,通过配置 message prop 的 maxCount 参数确保始终只显示最新的一条通知消息 --- apps/web-antd/src/app.vue | 2 +- .../src/views/dashboard/analytics/index.vue | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/apps/web-antd/src/app.vue b/apps/web-antd/src/app.vue index b6d925be..6bab769c 100644 --- a/apps/web-antd/src/app.vue +++ b/apps/web-antd/src/app.vue @@ -59,7 +59,7 @@ const otherProps = computed< :wave="waveConfig" v-bind="otherProps" > - + diff --git a/apps/web-antd/src/views/dashboard/analytics/index.vue b/apps/web-antd/src/views/dashboard/analytics/index.vue index 15ed6525..e428ac95 100644 --- a/apps/web-antd/src/views/dashboard/analytics/index.vue +++ b/apps/web-antd/src/views/dashboard/analytics/index.vue @@ -76,6 +76,10 @@ function handleClick() { } const loading = ref(true); + +function keepOneMessage() { + window.message.success('只有一条消息'); +}