Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

fix(types): specify the shared album listing response

Timothy Yin3a3cdd6253ba
diff --git a/packages/gallery/app/components/album/Listing.vue b/packages/gallery/app/components/album/Listing.vue
index 86ec4c3c..764e96f5 100644
--- a/packages/gallery/app/components/album/Listing.vue
+++ b/packages/gallery/app/components/album/Listing.vue
@@ -16,9 +16,13 @@ const {
data: albums,
status,
refresh,
-} = useAsyncData<AlbumWithPhotos[]>('albums', () => galleryApi('/api/albums'), {
- watch: [],
-})
+} = useAsyncData<AlbumWithPhotos[]>(
+ 'albums',
+ () => galleryApi<AlbumWithPhotos[]>('/api/albums'),
+ {
+ watch: [],
+ },
+)
// 根据登录状态决定是否过滤隐藏的相册
// 登录用户可以看到所有相册,未登录用户只能看到非隐藏相册