style(api): 统一代码风格并修复语法问题
- 统一import语句的空格格式 - 修复分号缺失问题 - 调整函数参数换行格式以符合规范 - 删除多余空行保持代码整洁 - 修复字符串拼接的换行格式问题
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<!-- 全局页脚 -->
|
||||
<template>
|
||||
<div v-if="config.setting?.showAdminCopyright" class="ele-text-center" style="padding: 16px 0">
|
||||
<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>
|
||||
@@ -8,19 +12,19 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import {useI18n} from 'vue-i18n';
|
||||
import {useWebsiteSettingStore} from "@/store/modules/setting";
|
||||
import {getSettingByKey} from "@/api/system/setting";
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useWebsiteSettingStore } from '@/store/modules/setting';
|
||||
import { getSettingByKey } from '@/api/system/setting';
|
||||
|
||||
const {t} = useI18n();
|
||||
const config = useWebsiteSettingStore();
|
||||
const { t } = useI18n();
|
||||
const config = useWebsiteSettingStore();
|
||||
|
||||
const reload = async () => {
|
||||
if (!config.setting) {
|
||||
const info = await getSettingByKey('privacy');
|
||||
config.setSetting(info)
|
||||
}
|
||||
}
|
||||
const reload = async () => {
|
||||
if (!config.setting) {
|
||||
const info = await getSettingByKey('privacy');
|
||||
config.setSetting(info);
|
||||
}
|
||||
};
|
||||
|
||||
reload();
|
||||
reload();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user