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
c57963b0
Commit
c57963b0
authored
Dec 23, 2025
by
水玉婷
Browse files
feat:移除用时
parent
85ded336
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/views/components/utils/contentTemplateService.ts
View file @
c57963b0
...
...
@@ -414,7 +414,9 @@ export class ContentTemplateService {
// 计算思考用时
const
thinkingTime
=
this
.
thinkingStartTime
?
Math
.
round
((
Date
.
now
()
-
this
.
thinkingStartTime
)
/
1000
)
:
0
;
const
thinkingTimeText
=
thinkingTime
>
0
?
`已完成思考 (用时:
${
thinkingTime
}
s)`
:
''
;
// const thinkingTimeText = thinkingTime > 0 ? `已完成思考 (用时:${thinkingTime}s)` : '';
const
thinkingTimeText
=
thinkingTime
>
0
?
`已完成思考`
:
''
;
updatedResponse
.
contentBlocks
[
updatedBlockIndex
].
thinkContent
=
currentThinkContent
;
// 添加思考时长信息到内容块中,供前端模板使用
...
...
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