修复启动逻辑

This commit is contained in:
whyour
2025-05-17 17:25:50 +08:00
parent ec3d61a713
commit 472a3088df
4 changed files with 34 additions and 18 deletions
+4 -1
View File
@@ -110,7 +110,10 @@ export default function () {
}
})
.catch((error) => {
history.push('/error');
const responseStatus = error.response.status;
if (responseStatus !== 401) {
history.push('/error');
}
})
.finally(() => setInitLoading(false));
};