Skip to content

Commit

Permalink
Merge pull request tangly1024#2475 from tangly1024/fix/auto-redirect-…
Browse files Browse the repository at this point in the history
…lang

默认关闭自动重定向多语言
  • Loading branch information
tangly1024 committed Jun 5, 2024
2 parents 421a27d + 012fffa commit 18f81aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ export function GlobalContextProvider(props) {
useEffect(() => {
initDarkMode(updateDarkMode, defaultDarkMode)
initLocale(lang, locale, updateLang, updateLocale)
redirectUserLang(NOTION_PAGE_ID)
// 可以
if (NOTION_CONFIG?.REDIRECT_LANG) {
redirectUserLang(NOTION_PAGE_ID)
}
}, [])

// 加载进度条
Expand Down

0 comments on commit 18f81aa

Please sign in to comment.