mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 09:31:55 +08:00
fix: sitename title
This commit is contained in:
parent
a58d95fdbb
commit
ef8b0ed7ad
@ -4,6 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/png" href="/apple-touch-icon.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>NEZHA</title>
|
||||
<script>
|
||||
(function () {
|
||||
const storageKey = "vite-ui-theme";
|
||||
@ -29,7 +30,6 @@
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/font-logos@1/assets/font-logos.css"
|
||||
/>
|
||||
<title>NEZHA</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
@ -22,6 +22,10 @@ function Header() {
|
||||
|
||||
const siteName = settingData?.data?.site_name;
|
||||
|
||||
useEffect(() => {
|
||||
document.title = siteName || "NEZHA";
|
||||
}, [siteName]);
|
||||
|
||||
return (
|
||||
<div className="mx-auto w-full max-w-5xl">
|
||||
<section className="flex items-center justify-between">
|
||||
|
Loading…
x
Reference in New Issue
Block a user