<script lang="ts" setup>
|
import { computed } from 'vue';
|
import { useRoute } from 'vue-router';
|
|
import { AuthPageLayout } from '@vben/layouts';
|
import { $t } from '#/locales';
|
|
const route = useRoute();
|
const isLogin = computed(() => route.name === 'Login');
|
</script>
|
|
<template>
|
<RouterView v-if="isLogin" />
|
<AuthPageLayout
|
v-else
|
:page-description="$t('authentication.pageDesc')"
|
:page-title="$t('authentication.pageTitle')"
|
>
|
<!-- 自定义工具栏 -->
|
<!-- <template #toolbar></template> -->
|
</AuthPageLayout>
|
</template>
|