mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 04:46:26 +00:00
refactor: 优化前端代码结构和资源管理 style: 调整前端代码格式和样式 chore: 更新.gitignore和构建配置 fix: 修复前端资源路径和引用问题 docs: 更新前端文档和注释 perf: 优化前端性能和加载速度 test: 更新前端测试用例 build: 调整前端构建配置 ci: 更新CI/CD配置
49 lines
1.3 KiB
HTML
Executable File
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>
|