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

This commit is contained in:
wangdan-fit2cloud 2024-05-22 15:17:54 +08:00
parent 49451b4c0a
commit 5ea216753f
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)