diff --git a/src/views/Community/components/EventList.js b/src/views/Community/components/EventList.js index 0eeffae6..0dabe86d 100644 --- a/src/views/Community/components/EventList.js +++ b/src/views/Community/components/EventList.js @@ -55,19 +55,6 @@ const EventList = ({ events, pagination, onPageChange, onEventClick, onViewDetai console.log('[EventList DEBUG] 事件标题:', event?.title); logger.info('EventList', '收到新事件推送', event); - console.log('[EventList DEBUG] 准备显示 Toast 通知'); - // 显示 Toast 通知 - 更明显的配置 - const toastId = toast({ - title: '🔔 新事件发布', - description: event.title, - status: 'success', // 改为 success,更醒目 - duration: 8000, // 延长显示时间到 8 秒 - isClosable: true, - position: 'top', // 改为顶部居中,更显眼 - variant: 'solid', // 改为 solid,背景更明显 - }); - console.log('[EventList DEBUG] ✓ Toast 通知已调用,ID:', toastId); - // 发送浏览器原生通知 console.log('[EventList DEBUG] 准备发送浏览器原生通知'); console.log('[EventList DEBUG] 通知权限状态:', browserPermission);