From 34e542665abfb5b5cdedff5ba768ac55020ae6fc Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Sat, 11 Oct 2025 01:22:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=8C=89=E9=92=AE=E5=92=8C=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/DebugComponent.vue | 5 ++++- web/src/layouts/AppLayout.vue | 27 +++++++++++++++++++++-- web/src/views/LoginView.vue | 31 ++++++++++++++++++++++++++- 3 files changed, 59 insertions(+), 4 deletions(-) diff --git a/web/src/components/DebugComponent.vue b/web/src/components/DebugComponent.vue index 163c8d08..f05e1fea 100644 --- a/web/src/components/DebugComponent.vue +++ b/web/src/components/DebugComponent.vue @@ -475,10 +475,13 @@ const printAgentConfig = async () => { &.ant-btn-primary { background-color: var(--main-color); border-color: var(--main-color); + color: #fff; - &:hover { + &:hover, + &:focus { background-color: var(--main-color); border-color: var(--main-color); + color: #fff; } } diff --git a/web/src/layouts/AppLayout.vue b/web/src/layouts/AppLayout.vue index c617d12a..19007d9d 100644 --- a/web/src/layouts/AppLayout.vue +++ b/web/src/layouts/AppLayout.vue @@ -5,7 +5,7 @@ import { GithubOutlined, ExclamationCircleOutlined, } from '@ant-design/icons-vue' -import { Bot, Waypoints, LibraryBig, Settings, BarChart3 } from 'lucide-vue-next'; +import { Bot, Waypoints, LibraryBig, Settings, BarChart3, BookOpen } from 'lucide-vue-next'; import { onLongPress } from '@vueuse/core' import { useConfigStore } from '@/stores/config' @@ -152,6 +152,19 @@ const mainList = [{ +
@@ -269,6 +275,10 @@ const showDevMessage = () => { message.info('该功能正在开发中,敬请期待!'); }; +const goHome = () => { + router.push('/'); +}; + // 清理倒计时器 const clearLockCountdown = () => { if (lockCountdown.value) { @@ -513,6 +523,25 @@ onUnmounted(() => { } } +.login-top-action { + position: absolute; + top: 24px; + right: 24px; + z-index: 10; +} + +.back-home-btn { + color: #666; + font-size: 14px; + padding: 0 8px; + + &:hover, + &:focus { + color: var(--main-color); + background-color: transparent; + } +} + .login-layout { display: flex; height: 100%; @@ -823,4 +852,4 @@ onUnmounted(() => { } } } - \ No newline at end of file +