feat: 登录的优化调整
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user