Files
cma-management/frontend/index.html
T

45 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="博海网络科技 · 管理会计OS" />
<meta name="theme-color" content="#304156" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<link rel="dns-prefetch" href="//cma.sxbh.ltd" />
<link rel="preconnect" href="//cma.sxbh.ltd" />
<title>管理会计OS</title>
<!-- 关键样式内联,防止 FOUC -->
<style>
html, body, #app { height: 100%; margin: 0; padding: 0; }
body { font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif; }
</style>
</head>
<body>
<div id="app">
<!-- 加载时显示占位 -->
<div id="boot-placeholder" style="display:flex;height:100%;align-items:center;justify-content:center;color:#999;font-size:14px">
加载中...
</div>
</div>
<script>
// 首屏兜底(BUG-001):若 10s 内应用未挂载完成(chunk/首屏接口慢或失败),
// 提示重试,避免整页刷新后永久卡在"加载中"壳页。
// 挂载成功会替换 #app 内容,此定时器随之失效(getElementById 取不到即 no-op)。
setTimeout(function () {
var p = document.getElementById('boot-placeholder');
if (p) {
p.innerHTML = '页面加载超时,请 <a href="javascript:location.reload()" style="color:#409eff">点击重试</a>';
}
}, 10000);
</script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>