feat: 登录逻辑调整

This commit is contained in:
duanshuwen
2025-12-27 23:20:21 +08:00
parent 56ad450731
commit 6745e36a79
2 changed files with 6 additions and 6 deletions

View File

@@ -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) => {