45 lines
1.1 KiB
HTML
45 lines
1.1 KiB
HTML
|
|
<!doctype html>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<title>all-kefu 管理后台</title>
|
||
|
|
<meta charset="UTF-8" />
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
|
|
<meta name="description" content="all-kefu 管理后台——多租户 AI 客服平台控制台" />
|
||
|
|
<link rel="icon" type="image/png" href="/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>
|