|
|
@@ -600,7 +600,7 @@ import {
|
|
|
registerAccount,
|
|
|
registerCheck
|
|
|
} from "@/api/modules/newLoginApi";
|
|
|
-import { localGet, localSet } from "@/utils";
|
|
|
+import { localGet, localRemove, localSet } from "@/utils";
|
|
|
|
|
|
const router = useRouter();
|
|
|
const route = useRoute();
|
|
|
@@ -859,12 +859,18 @@ const handleLogin = async () => {
|
|
|
localSet("geeker-user", userInfo);
|
|
|
if (localGet("geeker-user").userInfo.storeId) {
|
|
|
localSet("createdId", localGet("geeker-user").userInfo.storeId);
|
|
|
+ } else {
|
|
|
+ localRemove("createdId");
|
|
|
}
|
|
|
if (localGet("geeker-user").userInfo.phone) {
|
|
|
localSet("iphone", localGet("geeker-user").userInfo.phone);
|
|
|
+ } else {
|
|
|
+ localRemove("iphone");
|
|
|
}
|
|
|
if (localGet("geeker-user").userInfo.businessSection) {
|
|
|
localSet("businessSection", localGet("geeker-user").userInfo.businessSection);
|
|
|
+ } else {
|
|
|
+ localRemove("businessSection");
|
|
|
}
|
|
|
await initDynamicRouter();
|
|
|
|