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
5372ad96
Commit
5372ad96
authored
Nov 25, 2024
by
shirlyn.guo
👌🏻
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.gsstcloud.com/poc/poc-fe
into shirlyn
parents
85876de5
8b3e957a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
home-agent.ts
src/apis/home-agent.ts
+3
-1
history-menu-sidebar.vue
src/views/home/components/history-menu-sidebar.vue
+1
-1
No files found.
src/apis/home-agent.ts
View file @
5372ad96
...
@@ -24,5 +24,7 @@ export function fetchHistoryRecordDelete<T>(recordIdList: string[]) {
...
@@ -24,5 +24,7 @@ export function fetchHistoryRecordDelete<T>(recordIdList: string[]) {
}
}
export
function
fetchMessageRecordList
<
T
>
(
dialogueId
:
string
)
{
export
function
fetchMessageRecordList
<
T
>
(
dialogueId
:
string
)
{
return
request
.
post
<
T
>
(
`/agentApplicationRest/getDialogueContext.json?dialogueId=
${
dialogueId
}
`
)
return
request
.
post
<
T
>
(
`/agentApplicationRest/getDialogueContext.json?dialogueId=
${
dialogueId
}
`
,
null
,
{
timeout
:
12000
,
})
}
}
src/views/home/components/history-menu-sidebar.vue
View file @
5372ad96
...
@@ -50,7 +50,7 @@ function getSessionHistoryRecordList(isCreateNewSessionCheck = false) {
...
@@ -50,7 +50,7 @@ function getSessionHistoryRecordList(isCreateNewSessionCheck = false) {
isCreateNewSessionCheck
&&
isCreateNewSessionCheck
&&
props
.
currentSessionId
&&
props
.
currentSessionId
&&
(
sessionHistoryRecordList
.
value
.
length
===
0
||
(
sessionHistoryRecordList
.
value
.
length
===
0
||
sessionHistoryRecordList
.
value
.
find
((
item
)
=>
item
.
dialogsId
!==
props
.
currentSessionId
))
sessionHistoryRecordList
.
value
.
every
((
item
)
=>
item
.
dialogsId
!==
props
.
currentSessionId
))
)
{
)
{
emit
(
'createNewSession'
)
emit
(
'createNewSession'
)
}
}
...
...
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