update pay function
This commit is contained in:
@@ -478,23 +478,9 @@ const ConceptTimelineModal = ({
|
||||
useEffect(() => {
|
||||
if (isOpen && conceptId) {
|
||||
fetchTimelineData();
|
||||
setExpandedDates({}); // 重置展开状态
|
||||
}
|
||||
}, [isOpen, conceptId]);
|
||||
|
||||
// 切换日期展开状态
|
||||
const toggleDateExpand = (date) => {
|
||||
const willExpand = !expandedDates[date];
|
||||
|
||||
// 🎯 追踪日期展开/折叠
|
||||
trackDateToggled(date, willExpand);
|
||||
|
||||
setExpandedDates(prev => ({
|
||||
...prev,
|
||||
[date]: !prev[date]
|
||||
}));
|
||||
};
|
||||
|
||||
// 格式化日期显示(包含年份)
|
||||
const formatDateDisplay = (dateStr) => {
|
||||
const date = new Date(dateStr);
|
||||
|
||||
Reference in New Issue
Block a user