fix: 修复对话历史记录无法点赞问题
fix: 修复对话历史记录无法点赞问题
This commit is contained in:
commit
a35b1b824e
@ -166,6 +166,7 @@ function getChatRecord() {
|
|||||||
const list = res.data.records
|
const list = res.data.records
|
||||||
list.map((v: any) => {
|
list.map((v: any) => {
|
||||||
v['write_ed'] = true
|
v['write_ed'] = true
|
||||||
|
v['record_id'] = v.id
|
||||||
})
|
})
|
||||||
currentRecordList.value = [...list, ...currentRecordList.value].sort((a, b) =>
|
currentRecordList.value = [...list, ...currentRecordList.value].sort((a, b) =>
|
||||||
a.create_time.localeCompare(b.create_time)
|
a.create_time.localeCompare(b.create_time)
|
||||||
|
|||||||
@ -197,6 +197,7 @@ function getChatRecord() {
|
|||||||
const list = res.data.records
|
const list = res.data.records
|
||||||
list.map((v: any) => {
|
list.map((v: any) => {
|
||||||
v['write_ed'] = true
|
v['write_ed'] = true
|
||||||
|
v['record_id'] = v.id
|
||||||
})
|
})
|
||||||
currentRecordList.value = [...list, ...currentRecordList.value].sort((a, b) =>
|
currentRecordList.value = [...list, ...currentRecordList.value].sort((a, b) =>
|
||||||
a.create_time.localeCompare(b.create_time)
|
a.create_time.localeCompare(b.create_time)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user