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
da66aead
authored
May 16, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【增加】增加对话切换
parent
f14032d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
src/views/ai/chat/index.vue
+10
-1
No files found.
src/views/ai/chat/index.vue
View file @
da66aead
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<div>
<div>
<el-text
class=
"mx-1"
size=
"small"
tag=
"b"
>
置顶
</el-text>
<el-text
class=
"mx-1"
size=
"small"
tag=
"b"
>
置顶
</el-text>
</div>
</div>
<el-row
v-for=
"conversation in conversationList"
:key=
"conversation.id"
>
<el-row
v-for=
"conversation in conversationList"
:key=
"conversation.id"
@
click=
"handleConversationClick(conversation.id)"
>
<div
<div
:class=
"conversation.id === conversationId ? 'conversation active' : 'conversation'"
:class=
"conversation.id === conversationId ? 'conversation active' : 'conversation'"
@
click=
"changeConversation(conversation.id)"
@
click=
"changeConversation(conversation.id)"
...
@@ -528,6 +528,15 @@ const getChatConversationList = async () => {
...
@@ -528,6 +528,15 @@ const getChatConversationList = async () => {
}
}
}
}
// 对话点击
const
handleConversationClick
=
async
(
id
:
number
)
=>
{
// 切换对话
conversationId
.
value
=
id
console
.
log
(
'conversationId.value'
,
conversationId
.
value
)
// 获取列表数据
await
messageList
()
}
/** 初始化 **/
/** 初始化 **/
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
// 设置当前对话
// 设置当前对话
...
...
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