Files
fe.ems.vue3/src/views/error/403.vue
2023-09-05 14:38:23 +08:00

22 lines
577 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
import { useRouter } from 'vue-router';
const router = useRouter();
</script>
<template>
<a-result
status="403"
title="没有访问权限"
sub-title="请不要进行非法操作您可以返回主页面或返回"
>
<template #extra>
<RouterLink :to="{ name: 'Index' }" :replace="true">
<a-button type="primary"> 返回首页 </a-button>
</RouterLink>
<a-button type="default" @click="() => router.back()"> 返回 </a-button>
</template>
</a-result>
</template>
<style lang="less" scoped></style>