chore(config): 添加项目配置文件和隐私协议
- 添加 .editorconfig 文件统一代码风格 - 添加 .env.development 和 .env.example 环境配置文件 - 添加 .eslintignore 和 .eslintrc.js 代码检查配置 - 添加 .gitignore 版本控制忽略文件配置 - 添加 .prettierignore 格式化忽略配置 - 添加隐私协议HTML文件 - 添加API密钥管理组件基础结构
This commit is contained in:
30
src/layout/components/page-footer.vue
Normal file
30
src/layout/components/page-footer.vue
Normal file
@@ -0,0 +1,30 @@
|
||||
<!-- 全局页脚 -->
|
||||
<template>
|
||||
<div
|
||||
v-if="config.setting?.showAdminCopyright"
|
||||
class="ele-text-center"
|
||||
style="padding: 16px 0"
|
||||
>
|
||||
<div class="ele-text-secondary" style="margin-top: 8px">
|
||||
{{ t('layout.footer.copyright') }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useWebsiteSettingStore } from '@/store/modules/setting';
|
||||
import { getSettingByKey } from '@/api/system/setting';
|
||||
|
||||
const { t } = useI18n();
|
||||
const config = useWebsiteSettingStore();
|
||||
|
||||
const reload = async () => {
|
||||
if (!config.setting) {
|
||||
const info = await getSettingByKey('privacy');
|
||||
config.setSetting(info);
|
||||
}
|
||||
};
|
||||
|
||||
reload();
|
||||
</script>
|
||||
Reference in New Issue
Block a user