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
1c8bdc7e
authored
May 17, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【优化】AI 对话,编辑、删除 改为 button icon
parent
7acc2fcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
src/views/ai/chat/Conversation.vue
+21
-7
No files found.
src/views/ai/chat/Conversation.vue
View file @
1c8bdc7e
...
...
@@ -42,12 +42,19 @@
</div>
<!-- TODO @fan:缺一个【置顶】按钮,效果改成 hover 上去展示 -->
<div
class=
"button-wrapper"
>
<el-icon
title=
"编辑"
@
click=
"updateConversationTitle(conversation)"
>
<Icon
icon=
"ep:edit"
/>
</el-icon>
<el-icon
title=
"删除会话"
@
click=
"deleteChatConversation(conversation)"
>
<Icon
icon=
"ep:delete"
/>
</el-icon>
<el-button
link
>
<el-icon
title=
"置顶"
><Top
/></el-icon>
</el-button>
<el-button
link
@
click=
"updateConversationTitle(conversation)"
>
<el-icon
title=
"编辑"
>
<Icon
icon=
"ep:edit"
/>
</el-icon>
</el-button>
<el-button
link
@
click=
"deleteChatConversation(conversation)"
>
<el-icon
title=
"删除会话"
>
<Icon
icon=
"ep:delete"
/>
</el-icon>
</el-button>
</div>
</div>
</el-row>
...
...
@@ -82,6 +89,7 @@
import
{
ChatConversationApi
,
ChatConversationVO
}
from
'@/api/ai/chat/conversation'
import
{
ref
}
from
"vue"
;
import
Role
from
"@/views/ai/chat/role/index.vue"
;
import
{
Top
}
from
"@element-plus/icons-vue"
;
const
message
=
useMessage
()
// 消息弹窗
...
...
@@ -313,6 +321,12 @@ onMounted(async () => {
</
script
>
<
style
>
.el-button--default
{
margin
:
0
!important
;
}
</
style
>
<
style
scoped
lang=
"scss"
>
.conversation-container
{
...
...
@@ -386,7 +400,7 @@ onMounted(async () => {
color
:
#606266
;
.el-icon
{
margin-right
:
5px
;
//
margin-right
:
5px
;
}
}
}
...
...
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