- corretto che compare errore server mentre il token è scaduto

This commit is contained in:
Surya Paolo
2025-03-14 20:21:32 +01:00
parent 564a621aad
commit dfce2bc5eb
120 changed files with 569 additions and 4452 deletions

View File

@@ -1888,12 +1888,20 @@ export const useGlobalStore = defineStore('GlobalStore', {
} else {
}
} catch (error) {
if (error.status === serv_constants.RIS_CODE__HTTP_FORBIDDEN_TOKEN_EXPIRED) {
if (error.status === toolsext.ERR_RETRY_LOGIN) {
} else {
if (error.status === serv_constants.RIS_CODE__HTTP_FORBIDDEN_TOKEN_EXPIRED) {
} else {
this.serverError = true
}
}
console.log('error dbLoad', error)
// userStore.setErrorCatch(error)
this.serverError = true
this.serverMsgError = error
//return new Types.AxiosError(serv_constants.RIS_CODE_ERR, null, toolsext.ERR_GENERICO, error)
return false