system-copyright-react/index.html
2025-05-12 17:32:56 +08:00

39 lines
1.1 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- <link rel="icon" id="logo" type="image/svg+xml" href="/miao.svg" /> -->
<link rel="icon" id="logo" type="image/svg+xml" href="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="fonts/font-awesome/css/font-awesome.css" />
<title id="page-title"></title>
</head>
<script type="module">
// import { env } from 'vite';
const titleElement = document.getElementById('page-title');
if (titleElement) {
if (THEME === 'fzkj') {
titleElement.textContent = '珐著科技';
} else if (THEME === 'mzw') {
titleElement.textContent = 'AI喵著';
}
}
const logoElement = document.getElementById('logo');
if (logoElement) {
if (THEME === 'fzkj') {
logoElement.href = `${import.meta.env.BASE_URL}fzkj.svg`;
} else if (THEME === 'mzw') {
logoElement.href = `${import.meta.env.BASE_URL}miao.svg`;
}
}
</script>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>