F2-17: 登录默认跳工作台+清 PoC 预填账号+mock 页标题修正(#1/#2)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-06-12 07:25:39 +08:00
parent b374f7787c
commit 3fb8bad805
3 changed files with 152 additions and 5 deletions

View File

@@ -7,10 +7,11 @@ import { setSession } from '../auth/token';
export function LoginPage() {
const navigate = useNavigate();
const location = useLocation();
const from = (location.state as { from?: string })?.from || '/page/usergroup-manage';
// F2-17 #1:默认落工作台(原 /page/usergroup-manage 是 PoC 脚手架残留)
const from = (location.state as { from?: string })?.from || '/workbench';
const [account, setAccount] = useState('alice');
const [password, setPassword] = useState('123456');
const [account, setAccount] = useState('');
const [password, setPassword] = useState('');
const [error, setError] = useState('');
const [loading, setLoading] = useState(false);