diff --git a/src/hooks/useGoLogin.js b/src/hooks/useGoLogin.js index 8832771..dd2579c 100644 --- a/src/hooks/useGoLogin.js +++ b/src/hooks/useGoLogin.js @@ -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); diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index e2995d9..b4262c5 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -28,7 +28,7 @@ -