设置 Web 页面标题
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
"use client"
|
||||
|
||||
import { useEffect } from "react"
|
||||
import { useTranslations } from "next-intl"
|
||||
import { WelcomeScreen } from "@/components/welcome/welcome-screen"
|
||||
|
||||
export default function WelcomePage() {
|
||||
const t = useTranslations("WelcomePage")
|
||||
|
||||
useEffect(() => {
|
||||
document.title = `${t("title")} - codeg`
|
||||
}, [t])
|
||||
|
||||
return <WelcomeScreen />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user