mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
Merge pull request #2475 from tangly1024/fix/auto-redirect-lang
默认关闭自动重定向多语言
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}, [])
|
||||
|
||||
// 加载进度条
|
||||
|
||||
Reference in New Issue
Block a user