Merge pull request #260 from InfinityPacer/v2

This commit is contained in:
jxxghp
2024-12-03 20:53:27 +08:00
committed by GitHub
+3 -1
View File
@@ -105,8 +105,10 @@ async function saveSiteSetting(value: { [key: string]: any }) {
try { try {
const result: { [key: string]: any } = await api.post('system/env', value) const result: { [key: string]: any } = await api.post('system/env', value)
if (result.success) { if (result.success) {
$toast.success('保存设置成功') $toast.success('保存站点设置成功')
await reloadSystem() await reloadSystem()
} else {
$toast.error('站点设置保存失败!')
} }
} catch (error) { } catch (error) {
console.log(error) console.log(error)