update /api/events/<int:event_id>/stocks resp format
This commit is contained in:
@@ -187,17 +187,17 @@ const EventList = ({ events, pagination, onPageChange, onEventClick, onViewDetai
|
||||
logger.info('EventList', '收到新事件推送', event);
|
||||
|
||||
console.log('[EventList DEBUG] 准备显示 Toast 通知');
|
||||
// 显示 Toast 通知
|
||||
toast({
|
||||
title: '新事件发布',
|
||||
// 显示 Toast 通知 - 更明显的配置
|
||||
const toastId = toast({
|
||||
title: '🔔 新事件发布',
|
||||
description: event.title,
|
||||
status: 'info',
|
||||
duration: 5000,
|
||||
status: 'success', // 改为 success,更醒目
|
||||
duration: 8000, // 延长显示时间到 8 秒
|
||||
isClosable: true,
|
||||
position: 'top-right',
|
||||
variant: 'left-accent',
|
||||
position: 'top', // 改为顶部居中,更显眼
|
||||
variant: 'solid', // 改为 solid,背景更明显
|
||||
});
|
||||
console.log('[EventList DEBUG] ✓ Toast 通知已显示');
|
||||
console.log('[EventList DEBUG] ✓ Toast 通知已调用,ID:', toastId);
|
||||
|
||||
console.log('[EventList DEBUG] 准备更新事件列表');
|
||||
// 将新事件添加到列表顶部(防止重复)
|
||||
|
||||
Reference in New Issue
Block a user