feat: 登录逻辑调整
This commit is contained in:
@@ -45,14 +45,12 @@ import { ref, computed } from "vue";
|
||||
import {
|
||||
getServiceAgreement,
|
||||
getPrivacyAgreement,
|
||||
checkUserPhone
|
||||
} from "@/request/api/LoginApi";
|
||||
import { onLogin, goBack, refreshToken } from "@/hooks/useGoLogin";
|
||||
import CheckBox from "@/components/CheckBox/index.vue";
|
||||
import AgreePopup from "./components/AgreePopup/index.vue";
|
||||
import { zniconsMap } from "@/static/fonts/znicons";
|
||||
import { getCurrentConfig } from "@/constant/base";
|
||||
import { getAccessToken } from "@/constant/token";
|
||||
|
||||
const needWxLogin = ref(false);
|
||||
const isAgree = ref(false);
|
||||
@@ -78,7 +76,7 @@ const handleAgreeAndGetPhone = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
refreshToken().then(() => goBack());
|
||||
refreshToken(true).then(() => goBack());
|
||||
};
|
||||
|
||||
const getPhoneNumber = (e) => {
|
||||
|
||||
Reference in New Issue
Block a user