F2-17: 登录默认跳工作台+清 PoC 预填账号+mock 页标题修正(#1/#2)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user