Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
水玉婷
ai-wechat
Commits
85ded336
Commit
85ded336
authored
Dec 22, 2025
by
水玉婷
Browse files
feat:细节优化
parent
ba77e352
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/views/components/style.less
View file @
85ded336
...
@@ -956,22 +956,6 @@ li {
...
@@ -956,22 +956,6 @@ li {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
overflow: hidden;
// 当markdown与tips相邻时,调整间距
+ :deep(.message-tips) {
margin-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-top: none;
}
// 当tips在markdown之前时,调整markdown的样式
:deep(.message-tips) + & {
margin-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-top: none;
}
.markdown-content {
.markdown-content {
padding: 12px 16px;
padding: 12px 16px;
font-size: 14px;
font-size: 14px;
...
...
src/views/components/utils/contentTemplateService.ts
View file @
85ded336
...
@@ -482,15 +482,6 @@ export class ContentTemplateService {
...
@@ -482,15 +482,6 @@ export class ContentTemplateService {
updatedResponse
.
contentBlocks
[
updatedBlockIndex
].
thinkBoxExpanded
=
defaultThinkBoxExpanded
;
updatedResponse
.
contentBlocks
[
updatedBlockIndex
].
thinkBoxExpanded
=
defaultThinkBoxExpanded
;
}
}
}
else
if
(
updatedResponse
)
{
}
else
if
(
updatedResponse
)
{
// 特殊处理type=5的tips数据
if
(
contentType
===
5
)
{
updatedResponse
.
contentBlocks
.
push
({
content
:
this
.
templates
.
tips
(
messageContent
),
hasThinkBox
:
false
,
thinkContent
:
''
,
thinkBoxExpanded
:
false
,
});
}
else
{
// 检查最后一个块是否是普通文本块,如果是则合并,否则创建新块
// 检查最后一个块是否是普通文本块,如果是则合并,否则创建新块
const
isLastText
=
isLastBlockText
(
updatedResponse
.
contentBlocks
);
const
isLastText
=
isLastBlockText
(
updatedResponse
.
contentBlocks
);
...
@@ -516,18 +507,6 @@ export class ContentTemplateService {
...
@@ -516,18 +507,6 @@ export class ContentTemplateService {
});
});
}
}
}
}
}
break
;
default
:
// 其他状态码
if
(
updatedResponse
)
{
updatedResponse
.
contentBlocks
.
push
({
content
:
this
.
templates
.
text
(
messageContent
||
''
),
hasThinkBox
:
false
,
thinkContent
:
''
,
thinkBoxExpanded
:
false
,
});
}
break
;
break
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment