Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
ebd56386
Commit
ebd56386
authored
Nov 13, 2024
by
tyyin lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(首页): 历史记录删除后没有创建新对话
parent
980bb6d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
footer-operation.vue
src/views/home/components/footer-operation.vue
+2
-2
history-menu-sidebar.vue
src/views/home/components/history-menu-sidebar.vue
+2
-1
message-item.vue
src/views/home/components/message-item.vue
+1
-1
No files found.
src/views/home/components/footer-operation.vue
View file @
ebd56386
...
@@ -223,7 +223,7 @@ function handleQuestionSubmitEnter(event: KeyboardEvent) {
...
@@ -223,7 +223,7 @@ function handleQuestionSubmitEnter(event: KeyboardEvent) {
<div
class=
"box-border flex !w-[160px] w-full items-center justify-between px-[12px]"
>
<div
class=
"box-border flex !w-[160px] w-full items-center justify-between px-[12px]"
>
<div
class=
"mr-[5px] flex flex-1 items-center overflow-hidden"
>
<div
class=
"mr-[5px] flex flex-1 items-center overflow-hidden"
>
<div
<div
class=
"mr-[10px] h-[16px] w-[16px]
rounded-full bg-cover
"
class=
"mr-[10px] h-[16px] w-[16px]
bg-contain bg-no-repeat
"
:class=
"
{ 'bg-px-home-cuixiang_icon-png': !currentAgentApplication.agentAvatar }"
:class=
"
{ 'bg-px-home-cuixiang_icon-png': !currentAgentApplication.agentAvatar }"
:style="{ backgroundImage: `url(${currentAgentApplication.agentAvatar})` }"
:style="{ backgroundImage: `url(${currentAgentApplication.agentAvatar})` }"
>
</div>
>
</div>
...
@@ -255,7 +255,7 @@ function handleQuestionSubmitEnter(event: KeyboardEvent) {
...
@@ -255,7 +255,7 @@ function handleQuestionSubmitEnter(event: KeyboardEvent) {
@
click=
"handleApplicationChange(item)"
@
click=
"handleApplicationChange(item)"
>
>
<div
<div
class=
"mr-[10px] h-[16px] w-[16px]
rounded-full bg-cover
"
class=
"mr-[10px] h-[16px] w-[16px]
bg-contain bg-no-repeat
"
:class=
"
{ 'bg-px-home-cuixiang_icon-png': !item.agentAvatar }"
:class=
"
{ 'bg-px-home-cuixiang_icon-png': !item.agentAvatar }"
:style="{ backgroundImage: `url(${item.agentAvatar})` }"
:style="{ backgroundImage: `url(${item.agentAvatar})` }"
>
</div>
>
</div>
...
...
src/views/home/components/history-menu-sidebar.vue
View file @
ebd56386
...
@@ -49,7 +49,8 @@ function getSessionHistoryRecordList(isCreateNewSessionCheck = false) {
...
@@ -49,7 +49,8 @@ function getSessionHistoryRecordList(isCreateNewSessionCheck = false) {
if
(
if
(
isCreateNewSessionCheck
&&
isCreateNewSessionCheck
&&
props
.
currentSessionId
&&
props
.
currentSessionId
&&
sessionHistoryRecordList
.
value
.
find
((
item
)
=>
item
.
dialogsId
!==
props
.
currentSessionId
)
(
sessionHistoryRecordList
.
value
.
length
===
0
||
sessionHistoryRecordList
.
value
.
find
((
item
)
=>
item
.
dialogsId
!==
props
.
currentSessionId
))
)
{
)
{
emit
(
'createNewSession'
)
emit
(
'createNewSession'
)
}
}
...
...
src/views/home/components/message-item.vue
View file @
ebd56386
...
@@ -32,7 +32,7 @@ const name = computed(() => {
...
@@ -32,7 +32,7 @@ const name = computed(() => {
<
template
>
<
template
>
<div
class=
"mb-[20px] last:mb-0"
>
<div
class=
"mb-[20px] last:mb-0"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<img
class=
"h-[36px] w-[36px]"
:src=
"avatarUrl"
alt=
"Avatar"
/>
<img
class=
"h-[36px] w-[36px]
object-contain
"
:src=
"avatarUrl"
alt=
"Avatar"
/>
<div
class=
"ml-[11px]"
>
<div
class=
"ml-[11px]"
>
<div
class=
"mb-[7px] text-[12px] text-[#999]"
>
<div
class=
"mb-[7px] text-[12px] text-[#999]"
>
...
...
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