forked from Ivasoft/geovisio-website
fix typescript error getAuthRoute
This commit is contained in:
@@ -56,7 +56,6 @@ router.beforeEach(async (to, from, next) => {
|
||||
const loginUrl = `/api/users/me`
|
||||
const isKeycloakLogout = await axios.get(loginUrl)
|
||||
const isSiteLogin = !!cookies.get('user_id')
|
||||
console.log(isKeycloakLogout)
|
||||
if (isKeycloakLogout.status >= 300 || !isSiteLogin) {
|
||||
const win: Window = window
|
||||
win.location = getAuthRoute('/auth/login', to.path)
|
||||
|
||||
Reference in New Issue
Block a user