mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-04 04:30:06 +00:00
fix: typo & render error
This commit is contained in:
@@ -14,7 +14,13 @@ export default function Root() {
|
||||
|
||||
useEffect(() => {
|
||||
document.title = settingData?.site_name || "哪吒监控 Nezha Monitoring"
|
||||
}, [settingData])
|
||||
}, [settingData?.site_name])
|
||||
|
||||
useEffect(() => {
|
||||
if (settingData?.custom_code_dashboard) {
|
||||
InjectContext(settingData?.custom_code_dashboard)
|
||||
}
|
||||
}, [settingData?.custom_code_dashboard])
|
||||
|
||||
if (error) {
|
||||
throw error
|
||||
@@ -28,12 +34,6 @@ export default function Root() {
|
||||
i18n.changeLanguage(settingData?.language)
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (settingData?.custom_code_dashboard) {
|
||||
InjectContext(settingData?.custom_code)
|
||||
}
|
||||
}, [settingData?.custom_code_dashboard])
|
||||
|
||||
return (
|
||||
<ThemeProvider defaultTheme="system" storageKey="vite-ui-theme">
|
||||
<section className="text-sm mx-auto h-full flex flex-col justify-between">
|
||||
|
||||
Reference in New Issue
Block a user