|
|
@@ -600,6 +600,7 @@ import {
|
|
|
registerAccount,
|
|
|
registerCheck
|
|
|
} from "@/api/modules/newLoginApi";
|
|
|
+import { localGet, localSet } from "@/utils";
|
|
|
|
|
|
const router = useRouter();
|
|
|
const route = useRoute();
|
|
|
@@ -852,6 +853,12 @@ const handleLogin = async () => {
|
|
|
console.log(res.data, "res.data");
|
|
|
userStore.setToken(res.data.token);
|
|
|
userStore.setUserInfo(res.data);
|
|
|
+ if (localGet("geeker-user").userInfo.storeId) {
|
|
|
+ localSet("createdId", localGet("geeker-user").userInfo.storeId);
|
|
|
+ }
|
|
|
+ if (localGet("geeker-user").userInfo.phone) {
|
|
|
+ localSet("iphone", localGet("geeker-user").userInfo.phone);
|
|
|
+ }
|
|
|
await initDynamicRouter();
|
|
|
|
|
|
// 3.清空 tabs、keepAlive 数据
|