fix: 修复对话历史记录无法点赞问题

fix: 修复对话历史记录无法点赞问题
This commit is contained in:
wangdan-fit2cloud 2024-05-22 15:18:40 +08:00 committed by GitHub
commit a35b1b824e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,7 @@ function getChatRecord() {
const list = res.data.records
list.map((v: any) => {
v['write_ed'] = true
v['record_id'] = v.id
})
currentRecordList.value = [...list, ...currentRecordList.value].sort((a, b) =>
a.create_time.localeCompare(b.create_time)

View File

@ -197,6 +197,7 @@ function getChatRecord() {
const list = res.data.records
list.map((v: any) => {
v['write_ed'] = true
v['record_id'] = v.id
})
currentRecordList.value = [...list, ...currentRecordList.value].sort((a, b) =>
a.create_time.localeCompare(b.create_time)