Files
FastapiAdmin/frontend/web/index.html
T
zhangtao bf81480ada feat: 迁移前端资源文件并重构项目结构
refactor: 优化前端代码结构和资源管理

style: 调整前端代码格式和样式

chore: 更新.gitignore和构建配置

fix: 修复前端资源路径和引用问题

docs: 更新前端文档和注释

perf: 优化前端性能和加载速度

test: 更新前端测试用例

build: 调整前端构建配置

ci: 更新CI/CD配置
2026-05-09 00:46:43 +08:00

49 lines
1.3 KiB
HTML
Executable File

<!doctype html>
<html lang="zh-CN">
<head>
<title>%VITE_APP_TITLE%</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Vue3 + Vite + TypeScript + Element-Plus 的后台管理模板" />
<meta
name="keywords"
content="vue,element-plus,typescript,vue-element-admin,vue3-element-admin"
/>
<link rel="shortcut icon" type="image/x-icon" href="src/assets/images/favicon.png" />
<style>
/* 防止页面刷新时白屏的初始样式 */
html {
background-color: #fafbfc;
}
html.dark {
background-color: #070707;
}
</style>
<script>
// 初始化 html class 主题属性
(function () {
try {
if (typeof Storage === "undefined" || !window.localStorage) {
return;
}
const themeType = localStorage.getItem("sys-theme");
if (themeType === "dark") {
document.documentElement.classList.add("dark");
}
} catch (e) {
console.warn("Failed to apply initial theme:", e);
}
})();
</script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>