- R2:business-plugins 0.2.9 新增原生「平台管理」只读分区(已铺发到 admin/guest profile 并生效)
- 档案80 #7:删 web/{desktop,plugins,skills}.html(9→6 页)+ 5 处引用改直达 portal(nginx 已加 301)
- 新增 scripts/verify-platform-admin-section.mjs(打桩 react/jsx-runtime 真执行 client.js 做渲染断言)并接入 npm run verify
32 lines
845 B
HTML
32 lines
845 B
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>工作台</title>
|
|
</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>
|