feat(R2)+refactor: 平台管理分区 + 删 3 桩页(档案80 #7)+ 无浏览器验收脚本

- 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
This commit is contained in:
admin committed 2026-09-13 19:27:30 +08:00
1 parent 8d5597b3f9
commit f25723b743
9 files changed
+121 -39

No files matched your search

+2 -2
View File
@@ -91,13 +91,13 @@
location.href = b.url
return
}
// 失败兜底:admin 可手动进管理台 /desktop.html
// 失败兜底:admin 可手动进管理台 /portal.html
const errText =
b.error === 'instance_starting' ? '实例正在启动,请稍后重试'
: (b.error ?? 'HTTP ' + r.status)
msg.innerHTML =
'进入工作台失败:' + errText +
(role === 'admin' ? '(<a href="/desktop.html">前往管理台</a>)' : '')
(role === 'admin' ? '(<a href="/portal.html">前往管理台</a>)' : '')
setBusy(false)
} catch {
msg.textContent = '进入工作台失败:网络错误'