mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Merge branch 'feature/agenda-new-api-eudes' of bitbucket.org:equilibriumito/gabinete-digital-fo into feature/agenda-api-peter
This commit is contained in:
@@ -23,7 +23,7 @@ export class TokenInterceptor implements HttpInterceptor {
|
|||||||
null
|
null
|
||||||
);
|
);
|
||||||
|
|
||||||
private excludedDomains = ['Login', environment.apiChatUrl]; // Add the domains you want to exclude
|
private excludedDomains = [ environment.apiChatUrl]; // Add the domains you want to exclude
|
||||||
|
|
||||||
constructor(private http: HttpClient, private router: Router,private httpErrorHandle: HttpErrorHandle,) { }
|
constructor(private http: HttpClient, private router: Router,private httpErrorHandle: HttpErrorHandle,) { }
|
||||||
|
|
||||||
@@ -42,9 +42,13 @@ export class TokenInterceptor implements HttpInterceptor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return next.handle(request).pipe(
|
return next.handle(request).pipe(
|
||||||
|
|
||||||
catchError((error) => {
|
catchError((error) => {
|
||||||
|
console.log('interceptor ',error)
|
||||||
if (error instanceof HttpErrorResponse && error.status === 401) {
|
if (error instanceof HttpErrorResponse && error.status === 401) {
|
||||||
return this.handle401Error(request, next);
|
return this.handle401Error(request, next);
|
||||||
|
} else if (error.url.includes('https://gdapi-dev.dyndns.info/stage/api/v2') && error.status === 0){
|
||||||
|
return this.handle401Error(request, next);
|
||||||
} else {
|
} else {
|
||||||
return throwError(error);
|
return throwError(error);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -184,7 +184,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
<!--
|
||||||
<div *ngIf="eventProcess.workflowInstanceDataFields.OccurrenceType != '-1'"
|
<div *ngIf="eventProcess.workflowInstanceDataFields.OccurrenceType != '-1'"
|
||||||
class="container-div width-100">
|
class="container-div width-100">
|
||||||
<div class="ion-item-class-2 d-flex">
|
<div class="ion-item-class-2 d-flex">
|
||||||
@@ -213,7 +213,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
<div class="container-div width-100">
|
<div class="container-div width-100">
|
||||||
<div class="ion-item-class-2">
|
<div class="ion-item-class-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user