|
|
@@ -850,9 +850,13 @@ const handleLogin = async () => {
|
|
|
const res: any = await loginAccount(formData);
|
|
|
|
|
|
if (res.data) {
|
|
|
- console.log(res.data, "res.data");
|
|
|
userStore.setToken(res.data.token);
|
|
|
userStore.setUserInfo(res.data);
|
|
|
+ const userInfo = {
|
|
|
+ userInfo: res.data,
|
|
|
+ token: res.data.token
|
|
|
+ };
|
|
|
+ localSet("geeker-user", userInfo);
|
|
|
if (localGet("geeker-user").userInfo.storeId) {
|
|
|
localSet("createdId", localGet("geeker-user").userInfo.storeId);
|
|
|
}
|