Skip to content

Commit 18f81aa

Browse files
authored
Merge pull request tangly1024#2475 from tangly1024/fix/auto-redirect-lang
默认关闭自动重定向多语言
2 parents 421a27d + 012fffa commit 18f81aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/global.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ export function GlobalContextProvider(props) {
7979
useEffect(() => {
8080
initDarkMode(updateDarkMode, defaultDarkMode)
8181
initLocale(lang, locale, updateLang, updateLocale)
82-
redirectUserLang(NOTION_PAGE_ID)
82+
// 可以
83+
if (NOTION_CONFIG?.REDIRECT_LANG) {
84+
redirectUserLang(NOTION_PAGE_ID)
85+
}
8386
}, [])
8487

8588
// 加载进度条

0 commit comments

Comments
 (0)