- 添加 .editorconfig 文件统一代码风格 - 添加 .env.development 和 .env.example 环境配置文件 - 添加 .eslintignore 和 .eslintrc.js 代码检查配置 - 添加 .gitignore 版本控制忽略文件配置 - 添加 .prettierignore 格式化忽略配置 - 添加隐私协议HTML文件 - 添加API密钥管理组件基础结构
31 lines
718 B
Vue
31 lines
718 B
Vue
<!-- 全局页脚 -->
|
|
<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>
|