5832-232601-dev_test #65
|
@ -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';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue