mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-24 07:26:50 +00:00
多语言跳转问题
This commit is contained in:
@@ -127,6 +127,10 @@ export const redirectUserLang = (lang, pageId) => {
|
||||
if (!window.location.pathname === '/') {
|
||||
return
|
||||
}
|
||||
// 没有开启多语言
|
||||
if (BLOG.NOTION_PAGE_ID.indexOf(',') < 0) {
|
||||
return
|
||||
}
|
||||
|
||||
const userLang =
|
||||
getQueryVariable('locale') ||
|
||||
|
||||
Reference in New Issue
Block a user