Files
dsh_shenxian/web/index.html
T
admin 5ec99ce227
build / build-and-scan (push) Canceled after 0s
chore: 文档库全量重新入库(2026-10-20)
2026-10-20 15:05:55 +08:00

34 lines
977 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title data-i18n="index.title">Workspace</title>
<!-- 档案 81 · R5:平台多语言运行时(默认英语) -->
<script src="/i18n.js"></script>
</head>
<body>
<script>
;(async () => {
const res = await fetch('/api/auth/me')
if (!res.ok) {
location.href = '/login.html'
return
}
// 所有用户(admin/active)统一直达 DSH 会话窗口
try {
const r = await fetch('/api/dsh/enter', { method: 'POST' })
const b = await r.json().catch(() => ({}))
if (r.ok && b.kind === 'session' && b.url) {
location.href = b.url
return
}
} catch {
// fall through to desktop
}
location.href = '/portal.html'
})()
</script>
</body>
</html>