检查退出问题

This commit is contained in:
al 2024-11-06 16:28:44 +08:00
parent e9e95f3749
commit a61171f956
2 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,9 @@ export default function WithAuth(WrappedComponent) {
return;
}
if (hasToken) {
console.log("hasToken-----------", hasToken);
const currentIsLogin = await checkAuth();
console.log("currentIsLogin-----------", currentIsLogin);
if (!currentIsLogin) {
Toast.show({
icon: "fail",

View File

@ -27,7 +27,7 @@ export default function customFetch(method, url, options = {}, needMid) {
// 合并选项
const mergedOptions = { ...defaultOptions, body };
// console.log("body", body);
console.log("body", body);
// 返回 Promise 对象
return new Promise((resolve, reject) => {
fetch(url, mergedOptions)