diff --git a/client/.claude/settings.local.json b/client/.claude/settings.local.json index dde7b89..3beb17e 100644 --- a/client/.claude/settings.local.json +++ b/client/.claude/settings.local.json @@ -2,7 +2,8 @@ "permissions": { "allow": [ "Bash(cargo check:*)", - "Bash(cargo:*)" + "Bash(cargo:*)", + "Skill(frontend-design:frontend-design)" ] } } diff --git a/client/src/components/NewsCard.vue b/client/src/components/NewsCard.vue index 6b5b6f6..e51bca8 100644 --- a/client/src/components/NewsCard.vue +++ b/client/src/components/NewsCard.vue @@ -35,6 +35,13 @@ const summary = computed(() => { diff --git a/client/src/layouts/MainLayout.vue b/client/src/layouts/MainLayout.vue index 6865533..9cf4eb7 100644 --- a/client/src/layouts/MainLayout.vue +++ b/client/src/layouts/MainLayout.vue @@ -58,20 +58,13 @@ onMounted(() => { isDark.value = true document.documentElement.classList.add('dark') } - // 加载用户信息 userStore.loadUserInfo() }) -/** - * 切换侧边栏 - */ function toggleSidebar() { sidebarCollapsed.value = !sidebarCollapsed.value } -/** - * 切换主题 - */ function toggleTheme() { isDark.value = !isDark.value if (isDark.value) { @@ -83,24 +76,15 @@ function toggleTheme() { } } -/** - * 切换用户菜单 - */ function toggleUserMenu() { userMenuOpen.value = !userMenuOpen.value } -/** - * 处理登出 - */ function handleLogout() { userStore.logout() router.push('/login') } -/** - * 跳转到指定路径 - */ function navigateTo(path: string) { router.push(path) } @@ -113,16 +97,18 @@ function navigateTo(path: string) {