feat: 支持后台配置备案信息
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
|
||||
<n-layout-footer bordered class="footer">
|
||||
<span>© 2026 {{ appName }}</span>
|
||||
<span>备案信息待补充</span>
|
||||
<span v-if="filingInfo">{{ filingInfo }}</span>
|
||||
</n-layout-footer>
|
||||
</n-layout>
|
||||
</n-layout>
|
||||
@@ -86,6 +86,7 @@ const auth = useAuthStore();
|
||||
|
||||
const collapsed = ref(window.innerWidth < 900);
|
||||
const appName = ref(t('pages.login.title'));
|
||||
const filingInfo = ref('');
|
||||
|
||||
function renderIcon(icon: unknown) {
|
||||
return () => h(NIcon, null, { default: () => h(icon as never) });
|
||||
@@ -146,6 +147,7 @@ onMounted(async () => {
|
||||
try {
|
||||
const s = await settingsApi.getAll();
|
||||
if (s.appName) appName.value = s.appName;
|
||||
filingInfo.value = s.filingInfo || '';
|
||||
} catch {
|
||||
/* ignore */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user