fix(config): set scrollOffset to 0 is not effect (#2395)

pull/2396/head
烽宁 1 year ago committed by GitHub
parent 26f21d95df
commit 8153f23c90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -222,7 +222,7 @@ export async function resolveSiteData(
appearance: userConfig.appearance ?? true,
themeConfig: userConfig.themeConfig || {},
locales: userConfig.locales || {},
scrollOffset: userConfig.scrollOffset || 90,
scrollOffset: userConfig.scrollOffset ?? 90,
cleanUrls: !!userConfig.cleanUrls
}
}

Loading…
Cancel
Save