refs #5608 fix: use Router
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2023-06-15 11:46:15 +02:00
parent 7ef16a69f2
commit 1895e4ff98
1 changed files with 2 additions and 3 deletions

View File

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