mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
redirect 语言bug
This commit is contained in:
@@ -90,7 +90,10 @@ export function GlobalContextProvider(props) {
|
||||
useEffect(() => {
|
||||
initDarkMode(updateDarkMode, defaultDarkMode)
|
||||
initLocale(lang, locale, updateLang, updateLocale)
|
||||
if (NOTION_CONFIG?.REDIRECT_LANG) {
|
||||
if (
|
||||
NOTION_CONFIG?.REDIRECT_LANG &&
|
||||
JSON.parse(NOTION_CONFIG?.REDIRECT_LANG)
|
||||
) {
|
||||
redirectUserLang(NOTION_PAGE_ID)
|
||||
}
|
||||
setOnLoading(false)
|
||||
|
||||
Reference in New Issue
Block a user