- corretto che compare errore server mentre il token è scaduto
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user