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
654590da
Commit
654590da
authored
Nov 11, 2024
by
tyyin lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(首页): 历史记录全选状态不匹配
parent
14acb567
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
history-menu-sidebar.vue
src/views/home/components/history-menu-sidebar.vue
+11
-4
No files found.
src/views/home/components/history-menu-sidebar.vue
View file @
654590da
...
@@ -42,9 +42,17 @@ const isSelectAllRecord = computed(() => {
...
@@ -42,9 +42,17 @@ const isSelectAllRecord = computed(() => {
getSessionHistoryRecordList
()
getSessionHistoryRecordList
()
})()
})()
function
getSessionHistoryRecordList
()
{
function
getSessionHistoryRecordList
(
isCreateNewSessionCheck
=
false
)
{
fetchSessionHistoryRecordList
<
SessionHistoryRecordItem
[]
>
().
then
((
res
)
=>
{
fetchSessionHistoryRecordList
<
SessionHistoryRecordItem
[]
>
().
then
((
res
)
=>
{
sessionHistoryRecordList
.
value
=
res
.
data
sessionHistoryRecordList
.
value
=
res
.
data
if
(
isCreateNewSessionCheck
&&
props
.
currentSessionId
&&
sessionHistoryRecordList
.
value
.
find
((
item
)
=>
item
.
dialogsId
!==
props
.
currentSessionId
)
)
{
emit
(
'createNewSession'
)
}
})
})
}
}
...
@@ -104,10 +112,9 @@ function handleRecordDelete() {
...
@@ -104,10 +112,9 @@ function handleRecordDelete() {
window
.
$message
.
success
(
t
(
'common_module.delete_success_message'
))
window
.
$message
.
success
(
t
(
'common_module.delete_success_message'
))
isHistoryListEdit
.
value
=
false
isHistoryListEdit
.
value
=
false
currentSelectHistoryRecordList
.
value
=
[]
emit
(
'createNewSession'
)
getSessionHistoryRecordList
(
true
)
getSessionHistoryRecordList
()
})
})
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
...
...
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