diff --git a/src/boot/axios.js b/src/boot/axios.js index 64a6dac5f..f8f27278c 100644 --- a/src/boot/axios.js +++ b/src/boot/axios.js @@ -1,7 +1,7 @@ import axios from 'axios'; import { Notify } from 'quasar'; import { useSession } from 'src/composables/useSession'; -// import { Router } from 'src/router'; +import { Router } from 'src/router'; import { i18n } from './i18n'; const session = useSession(); @@ -62,8 +62,7 @@ const onResponseError = (error) => { session.destroy(); const hash = window.location.hash; const url = hash.slice(1); - window.location.href = url; - // Router.push({ path: url }); + Router.push({ path: url }); } else if (!session.isLoggedIn()) { message = 'login.loginError'; }