Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b4b90158
authored
Jul 09, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【解决todo】对话中不能清楚 chat 消息
parent
22048760
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
src/views/ai/chat/index/index.vue
+5
-1
No files found.
src/views/ai/chat/index/index.vue
View file @
b4b90158
...
@@ -198,7 +198,11 @@ const handlerConversationDelete = async (delConversation: ChatConversationVO) =>
...
@@ -198,7 +198,11 @@ const handlerConversationDelete = async (delConversation: ChatConversationVO) =>
}
}
/** 清空选中的对话 */
/** 清空选中的对话 */
const
handleConversationClear
=
async
()
=>
{
const
handleConversationClear
=
async
()
=>
{
// TODO @fan:需要加一个 对话进行中,不允许切换
// 对话进行中,不允许切换
if
(
conversationInProgress
.
value
)
{
message
.
alert
(
'对话中,不允许切换!'
)
return
false
}
activeConversationId
.
value
=
null
activeConversationId
.
value
=
null
activeConversation
.
value
=
null
activeConversation
.
value
=
null
activeMessageList
.
value
=
[]
activeMessageList
.
value
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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