From d2e88976cacafafd91e43410b11c00362a32c3c3 Mon Sep 17 00:00:00 2001 From: qiufeng Date: Wed, 3 Sep 2025 00:14:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B0=8F=E5=8A=A9=E6=89=8B=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E9=9A=94=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/default/tabs/index.less | 20 +++++++++++--------- src/views/demo/ai/MfishChat.vue | 4 ++-- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/layouts/default/tabs/index.less b/src/layouts/default/tabs/index.less index 0f907179..470ba22c 100644 --- a/src/layouts/default/tabs/index.less +++ b/src/layouts/default/tabs/index.less @@ -14,13 +14,14 @@ } } } - } -} - -[data-theme="light"] { - .@{prefix-cls} { - .ant-tabs-tab:not(.ant-tabs-tab-active) { - border: 1px solid @border-color-base !important; + .ant-tabs.ant-tabs-card { + .ant-tabs-nav { + .ant-tabs-tab { + &:hover { + box-shadow: 0 0 4px 0 rgba(255, 255, 255, 0.1); + } + } + } } } } @@ -56,7 +57,7 @@ transition: all 0.2s ease; &:hover { - box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.1); + box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1); .ant-tabs-tab-remove { width: 8px; @@ -86,6 +87,7 @@ } .ant-tabs-tab:not(.ant-tabs-tab-active) { + border-bottom: 1px solid @component-background !important; &:hover { color: @button-primary-color; } @@ -103,7 +105,7 @@ bottom: 0; left: 0; width: 100%; - height: 2px; + height: 1px; content: ""; background-color: @button-primary-active-color; } diff --git a/src/views/demo/ai/MfishChat.vue b/src/views/demo/ai/MfishChat.vue index 664cbf17..abb202e6 100644 --- a/src/views/demo/ai/MfishChat.vue +++ b/src/views/demo/ai/MfishChat.vue @@ -381,8 +381,8 @@ await chatRequest.value.create( { id, - message: { role: "user", content: val }, - messages: messages.value + sessionId: curSession.value, + message: { role: "user", content: val } }, { onSuccess: (data) => {