调整用户页样式, 添加过渡动画

This commit is contained in:
2025-04-01 03:10:19 +08:00
parent 574a177f8e
commit 4c188826ac
7 changed files with 676 additions and 385 deletions

View File

@@ -50,12 +50,9 @@ const layout = computed(() => {
watchEffect(() => {
if (isDarkMode.value) {
document.documentElement.classList.add('dark');
console.log('Added dark class to HTML'); // For debugging
} else {
document.documentElement.classList.remove('dark');
console.log('Removed dark class from HTML'); // For debugging
}
// If you dynamically apply Naive UI theme to body or provider, do it here too
});
const themeOverrides = {