diff --git a/server/routers/system_router.py b/server/routers/system_router.py index 5c57fc5b..5029651c 100644 --- a/server/routers/system_router.py +++ b/server/routers/system_router.py @@ -51,11 +51,6 @@ async def update_config_batch(items: dict = Body(...), current_user: User = Depe return config.dump_config() -@system.post("/restart") -async def restart_system(current_user: User = Depends(get_superadmin_user)): - """重启系统(仅超级管理员)""" - graph_base.start() - return {"message": "系统已重启"} @system.get("/logs") diff --git a/web/src/apis/system_api.js b/web/src/apis/system_api.js index 7cf079fa..413950f3 100644 --- a/web/src/apis/system_api.js +++ b/web/src/apis/system_api.js @@ -51,12 +51,7 @@ export const configApi = { */ updateConfigBatch: async (items) => apiAdminPost('/api/system/config/update', items), - /** - * 重启系统(仅超级管理员) - * @returns {Promise} - 重启结果 - */ - restartSystem: async () => apiSuperAdminPost('/api/system/restart', {}), - + /** * 获取系统日志 * @returns {Promise} - 系统日志 diff --git a/web/src/components/ChatSidebarComponent.vue b/web/src/components/ChatSidebarComponent.vue index 2856561c..a72f6776 100644 --- a/web/src/components/ChatSidebarComponent.vue +++ b/web/src/components/ChatSidebarComponent.vue @@ -304,10 +304,10 @@ const openAgentModal = () => { .new-chat-btn { width: 100%; padding: 8px 12px; - border-radius: 6px; - background-color: var(--gray-50); + border-radius: 8px; + background-color: var(--gray-0); color: var(--main-color); - border: none; + border: 1px solid var(--gray-150); transition: all 0.2s ease; font-weight: 500; cursor: pointer; @@ -315,9 +315,10 @@ const openAgentModal = () => { align-items: center; justify-content: center; gap: 8px; + box-shadow: 0 3px 4px rgba(0, 10, 20, 0.02); &:hover:not(:disabled) { - background-color: var(--gray-100); + box-shadow: 0 3px 4px rgba(0, 10, 20, 0.07); } &:disabled { diff --git a/web/src/components/StatusBar.vue b/web/src/components/StatusBar.vue index 7987f9d1..b39dbf3f 100644 --- a/web/src/components/StatusBar.vue +++ b/web/src/components/StatusBar.vue @@ -28,7 +28,7 @@ class="task-center-badge" > - + 任务中心 @@ -42,7 +42,7 @@ import { ref, computed, onMounted, onUnmounted } from 'vue' import { useInfoStore } from '@/stores/info' import { useUserStore } from '@/stores/user' -import { Clock, User, ListChecks } from 'lucide-vue-next' +import { Clock, User, ClipboardList } from 'lucide-vue-next' import { useTaskerStore } from '@/stores/tasker' import { storeToRefs } from 'pinia' import dayjs from '@/utils/time' @@ -169,7 +169,8 @@ onUnmounted(() => { .status-right { display: flex; align-items: center; - gap: 20px; + gap: 18px; + font-size: 13px; } .task-center-entry { @@ -187,27 +188,31 @@ onUnmounted(() => { .task-center-button { display: inline-flex; align-items: center; - gap: 6px; - padding: 4px 12px; + gap: 8px; + padding: 6px 14px; border-radius: 999px; - background-color: #f3f4f6; - color: #374151; + background-color: transparent; + color: var(--main-600, #2563eb); font-size: 13px; - transition: background-color 0.2s ease, color 0.2s ease; + font-weight: 500; + border: 1px solid rgba(37, 99, 235, 0.3); + transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; } .task-center-button .icon { - width: 14px; - height: 14px; + width: 15px; + height: 15px; + color: inherit; } .task-center-label { - font-weight: 500; + letter-spacing: 0.2px; } .task-center-entry:hover .task-center-button { - background-color: var(--main-40, #e5f0ff); - color: var(--main-500, #1d4ed8); + background-color: rgba(37, 99, 235, 0.08); + color: var(--main-700, #1d4ed8); + border-color: rgba(37, 99, 235, 0.5); } .task-center-badge :deep(.ant-badge-count) { @@ -220,17 +225,20 @@ onUnmounted(() => { align-items: center; gap: 6px; font-size: 13px; - color: #6b7280; + line-height: 1.3; + color: var(--gray-600, #4b5563); .icon { - width: 14px; - height: 14px; + width: 15px; + height: 15px; + color: var(--gray-600, #6b7280); } } .current-time, .user-greeting { font-weight: 500; + color: var(--gray-900, #111827); } // 响应式设计 diff --git a/web/src/views/SettingView.vue b/web/src/views/SettingView.vue index 523f7259..b2663d41 100644 --- a/web/src/views/SettingView.vue +++ b/web/src/views/SettingView.vue @@ -1,12 +1,6 @@