rework login to wor with authentik
rework env handling a runtime remove oketbase
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
import { RouterView, useRoute } from 'vue-router';
|
||||
import { useAuthStore } from '@/auth';
|
||||
import { RouterView } from 'vue-router';
|
||||
import { Sidebar } from './sidebar';
|
||||
|
||||
const route = useRoute();
|
||||
const authStore = useAuthStore();
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<template v-if="route.name === 'login'">
|
||||
<template v-if="!authStore.isLoggedIn">
|
||||
<RouterView />
|
||||
</template>
|
||||
<template v-else>
|
||||
|
||||
Reference in New Issue
Block a user