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(router): 修复路由滚动行为逻辑错误

Timothy Yin560526e7f1cf
diff --git a/app/router.options.ts b/app/router.options.ts
index ebf1e198..8882f4be 100644
--- a/app/router.options.ts
+++ b/app/router.options.ts
@@ -6,7 +6,7 @@ export default <RouterConfig>{
return savedPosition
}
- if (from.path === '/' && to.name === 'slug') {
+ if (from.path === '/' || to.name === 'slug') {
return false
}