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
8bea8ce6
authored
May 17, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【优化】AI 切换按钮,并排按钮
parent
559cd48c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
12 deletions
+22
-12
src/views/ai/chat/index.vue
+22
-12
No files found.
src/views/ai/chat/index.vue
View file @
8bea8ce6
...
...
@@ -13,12 +13,12 @@
<div
class=
"title"
>
{{
activeConversation
?.
title
}}
</div>
<div>
<div
class=
"btns"
>
<!-- TODO @fan:样式改下;这里我已经改成点击后,弹出了 -->
<el-button
type=
"primary"
@
click=
"openChatConversationUpdateForm"
>
<span
v-html=
"activeConversation?.modelName"
></span>
<Icon
icon=
"ep:setting"
style=
"margin-left: 10px"
/>
</el-button>
<el-button
type=
"primary"
@
click=
"openChatConversationUpdateForm"
>
<span
v-html=
"activeConversation?.modelName"
></span>
<Icon
icon=
"ep:setting"
style=
"margin-left: 10px"
/>
</el-button>
<el-button>
<Icon
icon=
"ep:user"
/>
</el-button>
...
...
@@ -32,10 +32,12 @@
</el-header>
<!-- main -->
<el-main
class=
"main-container"
>
<div
class=
"message-container"
>
<Message
v-if=
"list.length > 0"
ref=
"messageRef"
:list=
"list"
@
on-delete-success=
"handlerMessageDelete"
/>
<ChatEmpty
v-if=
"list.length === 0"
@
on-prompt=
"doSend"
/>
<el-main
class=
"main-container"
>
<div
>
<div
class=
"message-container"
>
<Message
v-if=
"list.length > 0"
ref=
"messageRef"
:list=
"list"
@
on-delete-success=
"handlerMessageDelete"
/>
<ChatEmpty
v-if=
"list.length === 0"
@
on-prompt=
"doSend"
/>
</div>
</div>
</el-main>
...
...
@@ -450,7 +452,6 @@ onMounted(async () => {
left
:
0
;
height
:
100%
;
width
:
100%
;
//
padding
:
15px
15px
;
}
.conversation-container
{
...
...
@@ -569,6 +570,12 @@ onMounted(async () => {
font-size
:
18px
;
font-weight
:
bold
;
}
.btns
{
display
:
flex
;
width
:
300px
;
justify-content
:
space-between
;
}
}
}
...
...
@@ -577,6 +584,8 @@ onMounted(async () => {
margin
:
0
;
padding
:
0
;
position
:
relative
;
height
:
100%
;
width
:
100%
;
.message-container
{
position
:
absolute
;
...
...
@@ -586,8 +595,9 @@ onMounted(async () => {
right
:
0
;
//
width
:
100%
;
//
height
:
100%
;
overflow-y
:
scroll
;
padding
:
0
15px
;
overflow-y
:
hidden
;
padding
:
0
;
margin
:
0
;
}
}
...
...
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