fix: completion response handler

This commit is contained in:
jialin
2024-06-29 21:39:55 +08:00
parent d47e53114c
commit afb2a13b80
12 changed files with 57 additions and 39 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ export const requestConfig: RequestConfig = {
message.error(errMsg);
}
console.log('errorHandler+++++++++++++++', error, opts);
if (response.status === 401) {
if (response?.status === 401) {
clearAtomStorage(userAtom);
history.push('/login', { replace: true });