mirror of https://github.com/rancher/dashboard.git
25 lines
518 B
Vue
25 lines
518 B
Vue
<script>
|
|
import { LOGGED_OUT } from '@/config/query-params';
|
|
|
|
export default {
|
|
layout: 'unauthenticated',
|
|
|
|
async asyncData({ redirect, store, router }) {
|
|
if ( process.env.dev ) {
|
|
await store.dispatch('auth/logout', null, { root: true });
|
|
redirect(302, `/auth/login?${ LOGGED_OUT }`);
|
|
} else {
|
|
redirect(302, `${ store.getters['rancherLink'] }logout`);
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<main>
|
|
<h1 class="text-center mt-50">
|
|
Logging Out…
|
|
</h1>
|
|
</main>
|
|
</template>
|