From 1895e4ff980ad69fa2528ccf94288de1205615c6 Mon Sep 17 00:00:00 2001 From: vicent Date: Thu, 15 Jun 2023 11:46:15 +0200 Subject: [PATCH] refs #5608 fix: use Router --- src/boot/axios.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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'; }