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