1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-10-15 20:39:01 +08:00

fix: 修复切换主题闪屏问题

This commit is contained in:
zclzone 2025-10-14 14:06:02 +08:00
parent 6757e47fb1
commit 5457c4e70b

View File

@ -39,6 +39,7 @@ async function toggleDark({ clientX, clientY }) {
duration: 500,
easing: 'ease-in',
pseudoElement: `::view-transition-${isDark.value ? 'old' : 'new'}(root)`,
fill: 'both',
},
)
}