feat: complete login and user management flow

This commit is contained in:
hectorzhao
2026-07-02 16:28:48 +08:00
parent 9c639d54b9
commit e26d8324c3
22 changed files with 1320 additions and 300 deletions
+10 -2
View File
@@ -10,15 +10,23 @@ import {
ShieldCheck,
Users,
} from 'lucide-react';
import { Navigate } from 'react-router-dom';
import { readSession } from '@/api/session';
import { AppShell } from '@/layouts/AppShell';
export function ClientLayout() {
const session = readSession();
if (session?.portal !== 'client') {
return <Navigate to="/client/login" replace />;
}
return (
<AppShell
title="CMPP 客户端"
subtitle="短信服务控制台"
workspaceName="华东一区客户空间"
userName="赵先生"
workspaceName={session.user.tenantName ?? '企业客户空间'}
loginPath="/client/login"
userName={session.user.displayName}
userRole="企业管理员"
navSections={[
{