|
|
|
@ -207,13 +207,14 @@
|
|
|
|
|
loading.value = false
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
if (item.createTime) {
|
|
|
|
|
item.createTime = new Date(item.createTime)
|
|
|
|
|
const createTime = new Date(item.createTime)
|
|
|
|
|
item.createTime =
|
|
|
|
|
item.createTime.getFullYear() +
|
|
|
|
|
createTime.getFullYear() +
|
|
|
|
|
'-' +
|
|
|
|
|
(item.createTime.getMonth() + 1) +
|
|
|
|
|
(createTime.getMonth() + 1) +
|
|
|
|
|
'-' +
|
|
|
|
|
item.createTime.getDate()
|
|
|
|
|
createTime.getDate() +
|
|
|
|
|
' ' + item.createTime.split(' ')[1]
|
|
|
|
|
}
|
|
|
|
|
item['type'] = item?.filePath?.split('.')[1]
|
|
|
|
|
})
|
|
|
|
|