mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix signin
This commit is contained in:
@@ -49,13 +49,11 @@ export const alovaInstance = createAlova({
|
||||
return data;
|
||||
},
|
||||
|
||||
// TODO handle errors
|
||||
// TODO how best to handle alova http errors like 401
|
||||
// Interceptor for request failure
|
||||
// This interceptor will be entered when the request is wrong.
|
||||
// The second parameter is the method instance of the current request, you can use it to synchronize the configuration information before and after the request
|
||||
onError: (error, method) => {
|
||||
console.log('error:', error); // TODO fix me
|
||||
console.log('method:', method); // TODO fix me
|
||||
onError: (error) => {
|
||||
alert(error.message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user