fix: 四所统计日历 embed 切换后初始化与加载失败仍渲染网格

统一 initInstanceStatsCalendar,统计 tab 动态注入时重新挂载日历,API 异常时保留月历骨架。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-30 08:42:39 +08:00
parent ac4cdceb39
commit 052dcf63bd
8 changed files with 59 additions and 162 deletions
+4
View File
@@ -76,6 +76,10 @@
if (typeof global.loadReviews === "function") global.loadReviews();
if (typeof global.toggleReviewMode === "function") global.toggleReviewMode();
}
if (tab === "stats") {
if (typeof global.initStatsSegmentFromUrl === "function") global.initStatsSegmentFromUrl();
if (typeof global.initInstanceStatsCalendar === "function") global.initInstanceStatsCalendar();
}
if (typeof global.refreshPriceSnapshotConditional === "function") {
global.refreshPriceSnapshotConditional();
}