xiaoyi
3 天以前 a59f15c41afa6ddf106c4bf9c163d9e322d314cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<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>