feat: 登录的优化调整

This commit is contained in:
2026-01-06 16:15:46 +08:00
parent 71a1083887
commit 7e02429f6e
2 changed files with 11 additions and 8 deletions

View File

@@ -1,7 +1,6 @@
import { wxLogin, checkUserPhone } from "@/request/api/LoginApi";
import { loginAuth, bindPhone } from "@/manager/LoginManager";
import { clientId } from "@/constant/base";
import { NOTICE_EVENT_LOGIN_SUCCESS } from "@/constant/constant";
import { getAccessToken, setAccessToken } from "../constant/token";
// 跳转登录
@@ -88,8 +87,6 @@ export const refreshToken = (needLogin = false) => {
});
if (checkRes.data) {
// 登录成功后,触发登录成功事件
uni.$emit(NOTICE_EVENT_LOGIN_SUCCESS);
resolve(false);
} else {
resolve(true);