fix: 修复年度报告页面导致主题异常的问题

This commit is contained in:
hicccc77
2026-03-08 14:00:38 +08:00
parent 439259ec57
commit e54eb8fea2

View File

@@ -127,12 +127,6 @@ function AnnualReportWindow() {
const { currentTheme, themeMode } = useThemeStore()
// 应用主题到独立窗口
useEffect(() => {
document.documentElement.setAttribute('data-theme', currentTheme)
document.documentElement.setAttribute('data-mode', themeMode)
}, [currentTheme, themeMode])
// Section refs
const sectionRefs = {
cover: useRef<HTMLElement>(null),