mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-18 23:16:49 +00:00
fix lang
This commit is contained in:
@@ -10,6 +10,7 @@ import { initGoogleAdsense } from './GoogleAdsense'
|
||||
import Head from 'next/head'
|
||||
import ExternalScript from './ExternalScript'
|
||||
import WebWhiz from './Webwhiz'
|
||||
import { useGlobal } from '@/lib/global'
|
||||
|
||||
/**
|
||||
* 各种插件脚本
|
||||
@@ -19,6 +20,7 @@ import WebWhiz from './Webwhiz'
|
||||
const ExternalPlugin = props => {
|
||||
// 读取自Notion的配置
|
||||
const { NOTION_CONFIG } = props
|
||||
const {lang} = useGlobal()
|
||||
const DISABLE_PLUGIN = siteConfig('DISABLE_PLUGIN', null, NOTION_CONFIG)
|
||||
const THEME_SWITCH = siteConfig('THEME_SWITCH', null, NOTION_CONFIG)
|
||||
const DEBUG = siteConfig('DEBUG', null, NOTION_CONFIG)
|
||||
@@ -166,7 +168,7 @@ const ExternalPlugin = props => {
|
||||
|
||||
setTimeout(() => {
|
||||
// 映射url
|
||||
convertInnerUrl(props?.allNavPages)
|
||||
convertInnerUrl({ allPages:props?.allNavPages, lang:lang })
|
||||
}, 500)
|
||||
}, [router])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user