mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
Merge pull request #260 from InfinityPacer/v2
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user