Skip to content

Commit 8153f23

Browse files
authored
fix(config): set scrollOffset to 0 is not effect (#2395)
1 parent 26f21d9 commit 8153f23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export async function resolveSiteData(
222222
appearance: userConfig.appearance ?? true,
223223
themeConfig: userConfig.themeConfig || {},
224224
locales: userConfig.locales || {},
225-
scrollOffset: userConfig.scrollOffset || 90,
225+
scrollOffset: userConfig.scrollOffset ?? 90,
226226
cleanUrls: !!userConfig.cleanUrls
227227
}
228228
}

0 commit comments

Comments
 (0)