feat(projects): 添加exception页面:403,404,500

This commit is contained in:
Soybean
2021-09-09 18:40:38 +08:00
parent ff4a09c452
commit d012c4ecf2
30 changed files with 7896 additions and 38 deletions

View File

@ -0,0 +1,6 @@
<template>
<div></div>
</template>
<script lang="ts" setup></script>
<style scoped></style>

View File

@ -0,0 +1,55 @@
<template>
<div>
<n-space>
<n-card v-for="item in cardData" :key="item.title" :title="item.title">
<template #header-extra>
<n-tag :type="item.color">{{ item.action }}</n-tag>
</template>
</n-card>
</n-space>
</div>
</template>
<script lang="ts" setup>
import { NSpace, NCard, NTag } from 'naive-ui';
interface CardData {
title: string;
value: number;
total: number;
color: 'default' | 'primary' | 'warning' | 'success';
action: string;
}
const cardData: CardData[] = [
{
title: '访问数',
value: 2000,
total: 120000,
color: 'default',
action: '月'
},
{
title: '成交额',
value: 20000,
total: 500000,
color: 'success',
action: '月'
},
{
title: '下载数',
value: 8000,
total: 120000,
color: 'primary',
action: '周'
},
{
title: '成交数',
value: 5000,
total: 50000,
color: 'warning',
action: '年'
}
];
</script>
<style scoped></style>

View File

@ -0,0 +1,6 @@
<template>
<div></div>
</template>
<script lang="ts" setup></script>
<style scoped></style>