chore(config): 添加项目配置文件和隐私协议
- 添加 .editorconfig 文件统一代码风格 - 添加 .env.development 和 .env.example 环境配置文件 - 添加 .eslintignore 和 .eslintrc.js 代码检查配置 - 添加 .gitignore 版本控制忽略文件配置 - 添加 .prettierignore 格式化忽略配置 - 添加隐私协议HTML文件 - 添加API密钥管理组件基础结构
This commit is contained in:
17
src/views/system/exception/403/index.vue
Normal file
17
src/views/system/exception/403/index.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<div style="padding-top: 80px">
|
||||
<a-result status="403" title="403" sub-title="抱歉, 你无权访问该页面.">
|
||||
<template #extra>
|
||||
<router-link to="/">
|
||||
<a-button type="primary">返回首页</a-button>
|
||||
</router-link>
|
||||
</template>
|
||||
</a-result>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: 'Exception403'
|
||||
};
|
||||
</script>
|
||||
66
src/views/system/exception/404/index.vue
Normal file
66
src/views/system/exception/404/index.vue
Normal file
@@ -0,0 +1,66 @@
|
||||
<template>
|
||||
<div class="ele-body">
|
||||
<a-card :bordered="false">
|
||||
<div style="max-width: 960px; margin: 0 auto">
|
||||
<a-result status="error" title="404" sub-title="您访问的页面走丢了">
|
||||
<!-- <div>无访问原因如下:</div>-->
|
||||
<!-- <div class="error-tips-item">-->
|
||||
<!-- <close-circle-outlined class="ele-text-danger" />-->
|
||||
<!-- <div>您的账户已被冻结</div>-->
|
||||
<!-- <a>立即解冻></a>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="error-tips-item">-->
|
||||
<!-- <close-circle-outlined class="ele-text-danger" />-->
|
||||
<!-- <div>您的账户还不具备申请资格</div>-->
|
||||
<!-- <a>立即咨询></a>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="error-tips-item">-->
|
||||
<!-- <close-circle-outlined class="ele-text-danger" />-->
|
||||
<!-- <div>您的站点已过期</div>-->
|
||||
<!-- <a>立即续费></a>-->
|
||||
<!-- </div>-->
|
||||
<template #extra>
|
||||
<a-space size="middle">
|
||||
<a-button type="primary" @click="openUrl('/')">返回首页</a-button>
|
||||
<!-- <a-button @click="openNew('https://www.gxwebsoft.com')">技术支持</a-button>-->
|
||||
</a-space>
|
||||
</template>
|
||||
</a-result>
|
||||
</div>
|
||||
</a-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { CloseCircleOutlined } from '@ant-design/icons-vue';
|
||||
import { openNew, openUrl } from '@/utils/common';
|
||||
|
||||
console.log('>>>>>');
|
||||
|
||||
const reload = () => {
|
||||
return false;
|
||||
};
|
||||
reload();
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: 'ResultFail'
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.error-tips-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 16px;
|
||||
|
||||
& > div {
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
a {
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
17
src/views/system/exception/500/index.vue
Normal file
17
src/views/system/exception/500/index.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<div style="padding-top: 80px">
|
||||
<a-result status="500" title="500" sub-title="抱歉, 服务器出错了.">
|
||||
<template #extra>
|
||||
<router-link to="/">
|
||||
<a-button type="primary">返回首页</a-button>
|
||||
</router-link>
|
||||
</template>
|
||||
</a-result>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: 'Exception500'
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user