- 浅色模式下用例脑图区域改为浅色样式 - 恢复 el-tag 按 success/warning/info 等类型的颜色 - 启动时应用主题,Home 内容区深色样式兜底 - nginx 禁止缓存 index.html,hash 静态资源长期缓存 Co-authored-by: Cursor <cursoragent@cursor.com>
44 lines
1.2 KiB
HTML
44 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
<title>效能平台</title>
|
|
<link rel="stylesheet" href="https://unpkg.com/wangeditor@4.7.15/dist/css/style.css" />
|
|
<style>
|
|
html {
|
|
height: 100%;
|
|
}
|
|
body {
|
|
height: 100%;
|
|
width: 100%;
|
|
padding: 0;
|
|
margin: 0;
|
|
background: #070b16;
|
|
color: #dbeafe;
|
|
}
|
|
body.theme-light {
|
|
background: #eef4ff;
|
|
color: #1f2937;
|
|
}
|
|
</style>
|
|
<script>
|
|
(function () {
|
|
var theme = 'dark';
|
|
try {
|
|
theme = localStorage.getItem('uiTheme') || 'dark';
|
|
} catch (e) {}
|
|
document.documentElement.className = theme === 'light' ? 'theme-light' : 'theme-dark';
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
document.body.classList.remove('theme-dark', 'theme-light');
|
|
document.body.classList.add(theme === 'light' ? 'theme-light' : 'theme-dark');
|
|
});
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body class="theme-dark">
|
|
<div id="app"></div>
|
|
<!-- built files will be auto injected -->
|
|
</body>
|
|
</html>
|