Files
FastapiAdmin/frontend/new-web/index.html
T
zhangtao e4f778877b feat: 初始化前端项目框架和基础功能
- 添加项目基础结构和配置
- 实现登录认证和权限管理
- 集成图表组件和UI库
- 添加多种页面模板和示例
- 配置路由和状态管理
- 实现国际化支持
- 添加暗黑主题切换功能
- 集成代码规范和提交检查工具
2026-05-02 01:37:18 +08:00

48 lines
1.2 KiB
HTML
Executable File

<!doctype html>
<html>
<head>
<title>Art Design Pro</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Art Design Pro - A modern admin dashboard template built with Vue 3, TypeScript, and Element Plus."
/>
<link rel="shortcut icon" type="image/x-icon" href="src/assets/images/favicon.ico" />
<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>