检查退出问题
This commit is contained in:
parent
e9e95f3749
commit
a61171f956
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue