diff --git a/components/i/library/thread.vue b/components/i/library/thread.vue index b0a4735336c677fd5e22a9b8bf60a520455ee372..74aa528d75a9f633dfe452438d192dd5297dee1f 100644 --- a/components/i/library/thread.vue +++ b/components/i/library/thread.vue @@ -13,7 +13,7 @@
- 52 分钟前 + {{formatTime}}
@@ -50,4 +50,7 @@ const props = defineProps({ function handleOpenSelect (id) { $openLibrarySelect(id) } +const formatTime = computed(() => { + return useTime(props.item.create_time) +}) \ No newline at end of file diff --git a/composables/useCollectionRequest.js b/composables/useCollectionRequest.js index a4e81a6d7c645e8888719300c1d91ef2a50a44b5..0558317aef325c47e6e2a9b14cea452b253f1a51 100644 --- a/composables/useCollectionRequest.js +++ b/composables/useCollectionRequest.js @@ -43,11 +43,11 @@ export default () => { } // 查询收藏夹会话列表 const findCollection = async (collection_id) => { - const {data, error} = await useRequest(`/v1/collection/${collection_id}/items`, { - method: 'post', - body - }) - return { data, error } + const {data, error} = await useRequest(`/v1/collection/${collection_id}/items`, { method: 'get' }) + if (error.value) { + return [] + } + return data.value.data || [] } // 删除收藏夹会话 const deleteCollectionRecord = async (collection_id, c_id) => { diff --git a/pages/library/[id].vue b/pages/library/[id].vue index b4d4b90e8f0f0cf00b540fa2bd9b786775f73eb2..31ff5eb34ce0b35ab10d9614c43598c82229a314 100644 --- a/pages/library/[id].vue +++ b/pages/library/[id].vue @@ -5,11 +5,11 @@
- - - - - +
@@ -18,7 +18,20 @@ \ No newline at end of file