Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
refactor(index): 移除重复的页面头部设置
Timothy Yin2ef91a00dc45
diff --git a/app/layouts/default.vue b/app/layouts/default.vueindex 76a65712..74a33f07 100644--- a/app/layouts/default.vue+++ b/app/layouts/default.vue@@ -1,4 +1,9 @@<script lang="ts" setup>+useHead({+ title: 'Gallery',+ titleTemplate: (title) => `${title} - TimoYin's mems`,+})+const { data } = useFetch('/api/photos')const photos = computed(() => (data.value as Photo[]) || [])</script>diff --git a/app/pages/index.vue b/app/pages/index.vueindex fec4e7d0..cc7ef847 100644--- a/app/pages/index.vue+++ b/app/pages/index.vue@@ -2,11 +2,6 @@const { switchToIndex, closeViewer } = useViewerState()const { currentPhotoIndex, isViewerOpen } = storeToRefs(useViewerState())-useHead({- title: 'Gallery',- titleTemplate: (title) => `${title} - TimoYin's mems`,-})-const { data } = useFetch('/api/photos')const photos = computed(() => (data.value as Photo[]) || [])</script>