mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
调整用户页样式, 添加过渡动画
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user