feat(projects): 添加常用组件、composables函数

This commit is contained in:
Soybean
2021-12-12 17:28:39 +08:00
parent e755caabf2
commit 230a50a4cf
87 changed files with 5424 additions and 2071 deletions

View File

@ -0,0 +1,26 @@
<template>
<div class="flex-col-center wh-full">
<div class="w-400px h-400px text-primary">
<svg-no-permission v-if="type === '403'" />
<svg-not-found v-if="type === '404'" />
<svg-service-error v-if="type === '500'" />
</div>
<router-link :to="ROUTE_HOME.path">
<n-button type="primary">回到首页</n-button>
</router-link>
</div>
</template>
<script lang="ts" setup>
import { NButton } from 'naive-ui';
import { SvgNoPermission, SvgNotFound, SvgServiceError } from '@/components';
import { ROUTE_HOME } from '@/router';
interface Props {
/** 异常类型 */
type: '403' | '404' | '500';
}
defineProps<Props>();
</script>
<style scoped></style>

View File

@ -0,0 +1,3 @@
import ExceptionBase from './ExceptionBase.vue';
export { ExceptionBase };