forked from Ivasoft/geovisio-website
add remove cookies
This commit is contained in:
@@ -23,6 +23,8 @@ onMounted(async () => {
|
||||
const isKeycloakLogout = await axios.get(loginUrl)
|
||||
const isSiteLogin = !!cookies.get('user_id')
|
||||
if (isKeycloakLogout || !isSiteLogin) {
|
||||
cookies.remove('user_id')
|
||||
cookies.remove('user_name')
|
||||
const win: Window = window
|
||||
win.location = `${loginUrl}?next_url=${route.path}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user