mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-11 13:11:23 +00:00
fix: open model button when switching sign-in accounts (#228)
This commit is contained in:
parent
88625c3442
commit
f6bb9c22ce
1 changed files with 3 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ const HAS_STACK_KEYS = hasStackKeys();
|
|||
let lock = false;
|
||||
export default function Login() {
|
||||
const app = HAS_STACK_KEYS ? useStackApp() : null;
|
||||
const { setAuth } = useAuthStore();
|
||||
const { setAuth,setModelType } = useAuthStore();
|
||||
const navigate = useNavigate();
|
||||
const location = useLocation();
|
||||
const [hidePassword, setHidePassword] = useState(true);
|
||||
|
|
@ -100,6 +100,7 @@ export default function Login() {
|
|||
}
|
||||
|
||||
setAuth({ email: formData.email, ...data });
|
||||
setModelType('cloud')
|
||||
navigate("/");
|
||||
} catch (error: any) {
|
||||
console.error("Login failed:", error);
|
||||
|
|
@ -120,6 +121,7 @@ export default function Login() {
|
|||
return;
|
||||
}
|
||||
console.log("data", data);
|
||||
setModelType('cloud')
|
||||
setAuth({ email: formData.email, ...data });
|
||||
navigate("/");
|
||||
} catch (error: any) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue