ny
23 小时以前 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<script lang="ts" setup>
import { Fallback } from '@vben/common-ui';
import { ArrowLeft } from '@vben/icons';
 
import { VbenButton } from '@vben-core/shadcn-ui';
 
import { $t } from '#/locales';
 
defineOptions({ name: 'Fallback403' });
 
function backToMain() {
  window.location.replace(window.location.origin);
}
</script>
 
<template>
  <Fallback status="403">
    <template #action>
      <VbenButton size="lg" @click="backToMain">
        <ArrowLeft class="mr-2 size-4" />
        {{ $t('common.backToMain') }}
      </VbenButton>
    </template>
  </Fallback>
</template>