xiaoyi
2 天以前 97b2e606968fbe7a55df1173f52edc7e11ccfd12
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>