2024-05-19 21:20:42 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { preference } from '@vben/preference';
|
|
|
|
|
|
|
|
import Toolbar from './toolbar.vue';
|
|
|
|
|
|
|
|
defineOptions({
|
|
|
|
name: 'AuthenticationFormView',
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<template>
|
2024-05-28 23:53:15 +08:00
|
|
|
<div class="flex-col-center relative px-6 py-10 lg:flex-initial lg:px-8">
|
2024-05-19 21:20:42 +08:00
|
|
|
<slot name="toolbar">
|
|
|
|
<Toolbar />
|
|
|
|
</slot>
|
|
|
|
|
|
|
|
<RouterView v-slot="{ Component, route }">
|
|
|
|
<Transition name="slide-right" mode="out-in" appear>
|
|
|
|
<KeepAlive :include="['Login']">
|
|
|
|
<component
|
|
|
|
:is="Component"
|
|
|
|
:key="route.fullPath"
|
|
|
|
class="mt-6 w-full sm:mx-auto md:max-w-md"
|
|
|
|
/>
|
|
|
|
</KeepAlive>
|
|
|
|
</Transition>
|
|
|
|
</RouterView>
|
|
|
|
|
|
|
|
<div
|
|
|
|
class="text-muted-foreground absolute bottom-3 flex text-center text-xs"
|
|
|
|
>
|
|
|
|
{{ preference.copyright }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|