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