Add login modal experience (#16)
This commit is contained in:
1 parent
d536508293
commit
ccae7257e5
11 files changed
+95
-20
No files matched your search
@@ -33,12 +33,12 @@ httpClient.interceptors.response.use(
|
||||
(error) => {
|
||||
if (error?.response?.status === 401) {
|
||||
store.dispatch('resetToken');
|
||||
router.push({
|
||||
name: ROUTE_AUTH_LOGIN,
|
||||
query: {
|
||||
redirect: router?.currentRoute?.value?.path
|
||||
}
|
||||
});
|
||||
// router.push({
|
||||
// name: ROUTE_AUTH_LOGIN,
|
||||
// query: {
|
||||
// redirect: router?.currentRoute?.value?.path
|
||||
// }
|
||||
// });
|
||||
}
|
||||
return Promise.reject(error);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user