imageInSession的结构重构

This commit is contained in:
bob
2025-05-13 16:43:16 +08:00
parent 653bbccb24
commit ad0d0ad7a0
2 changed files with 10 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ const url = computed(() => {
})
const imageInSessionSort = computed(() => {
const imageList = imageData.imageInSession[props.sessionId]
const imageList = Object.values(imageData.imageInSession[props.sessionId])
return imageList.sort((a, b) => {
const bTime = new Date(b.createdTime).getTime()
const aTime = new Date(a.createdTime).getTime()