feat(ops): add tenant admin user management module

Adds /admin-users CRUD on the ops backend, covering listing, plan/role/KOL
toggles, subscription expiry, status flips and password resets, with a
configurable default plan code. The ops console exposes a new top-level
"用户管理" view and reorganises the sidebar so 操作员管理 and 审计日志
move under a "系统设置" group; AccountsView is renamed accordingly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-29 00:02:46 +08:00
parent 62b824520c
commit 7be0de0614
15 changed files with 2574 additions and 27 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ async function onSubmit() {
try {
await auth.login(form.username.trim(), form.password);
const redirect =
typeof route.query.redirect === "string" ? route.query.redirect : "/accounts";
typeof route.query.redirect === "string" ? route.query.redirect : "/admin-users";
void router.replace(redirect);
} catch (error) {
if (error instanceof OpsApiError) {