Skip to content

Commit

Permalink
Comment interceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronaldo Macapobre committed Oct 23, 2024
1 parent 83b15bb commit 82550a4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions web/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ Vue.use(ServicePlugin);
Vue.config.productionTip = true;
Vue.component('loading-spinner', LoadingSpinner);

Vue.http.interceptors.push(function () {
return function (response) {
if (response.status == 401) {
location.replace(`${process.env.BASE_URL}api/auth/login?redirectUri=${window.location}`);
}
};
});
// Vue.http.interceptors.push(function () {
// return function (response) {
// if (response.status == 401) {
// location.replace(`${process.env.BASE_URL}api/auth/login?redirectUri=${window.location}`);
// }
// };
// });

Vue.http.options.root = process.env.BASE_URL;

Expand Down

0 comments on commit 82550a4

Please sign in to comment.