fix: 修复部分参数bug

This commit is contained in:
sugarBecomer
2026-03-24 20:10:03 +08:00
parent 01728a4712
commit 994dc360ae
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ async function fetchSummary() {
async function fetchAnnouncement() {
announcementLoading.value = true
try {
const res = await authApi.getPublicConfig('announcement')
const res = await authApi.getPublicConfig('system.announcement')
if (res.code === 200 && res.data) announcement.value = String(res.data)
} finally {
announcementLoading.value = false
+1 -1
View File
@@ -171,7 +171,7 @@ onMounted(() => {
<template v-else>
<div class="flex items-center gap-3">
<Label>允许用户注册</Label>
<Switch v-model:checked="allowRegister" />
<Switch v-model="allowRegister" />
<span class="text-sm text-muted-foreground">{{ allowRegister ? '已开启' : '已关闭' }}</span>
</div>
<div class="flex justify-end">