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
fix: 修复打开照片详情后会自动滚动的页面顶部
Timothy Yinb08b21f6bec2
diff --git a/app/router.options.ts b/app/router.options.tsnew file mode 100644index 00000000..ebf1e198--- /dev/null+++ b/app/router.options.ts@@ -0,0 +1,15 @@+import type { RouterConfig } from 'nuxt/schema'++export default <RouterConfig>{+ scrollBehavior(to, from, savedPosition) {+ if (savedPosition) {+ return savedPosition+ }++ if (from.path === '/' && to.name === 'slug') {+ return false+ }++ return { top: 0 }+ },+}