多语言跳转问题

This commit is contained in:
tangly1024.com
2024-08-28 12:30:08 +08:00
parent bd735939b7
commit 9535807fbe
2 changed files with 5 additions and 1 deletions

View File

@@ -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') ||