fix: 修复部分参数bug
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user