feat: 登录异常问题调整
This commit is contained in:
@@ -4,7 +4,6 @@ import {
|
||||
checkUserPhone,
|
||||
} from "../request/api/LoginApi";
|
||||
import { getWeChatAuthCode } from "./AuthManager";
|
||||
import { useAppStore } from "@/store";
|
||||
import { clientId } from "@/constant/base";
|
||||
import { NOTICE_EVENT_LOGIN_SUCCESS } from "@/constant/constant";
|
||||
import { removeStorageSyncToken, setStorageSyncToken } from "../constant/token";
|
||||
@@ -26,6 +25,7 @@ const loginAuth = (e) => {
|
||||
console.log("获取到的微信授权response:", response);
|
||||
|
||||
if (response.access_token) {
|
||||
console.log("进入条件");
|
||||
setStorageSyncToken(response.access_token);
|
||||
// 登录成功后,触发登录成功事件
|
||||
uni.$emit(NOTICE_EVENT_LOGIN_SUCCESS);
|
||||
@@ -45,9 +45,4 @@ const bindPhone = async (params) => {
|
||||
}
|
||||
};
|
||||
|
||||
const checkPhone = async () => {
|
||||
const response = await checkUserPhone();
|
||||
return response;
|
||||
};
|
||||
|
||||
export { loginAuth, bindPhone, checkPhone };
|
||||
export { loginAuth, bindPhone };
|
||||
|
||||
Reference in New Issue
Block a user