mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
移除保存设置时的重载系统调用,进一步简化设置保存逻辑
This commit is contained in:
@@ -184,7 +184,6 @@ async function saveMediaServerSetting() {
|
|||||||
else $toast.error(t('setting.system.mediaServerSaveFailed'))
|
else $toast.error(t('setting.system.mediaServerSaveFailed'))
|
||||||
|
|
||||||
await loadMediaServerSetting()
|
await loadMediaServerSetting()
|
||||||
await reloadSystem()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
}
|
}
|
||||||
@@ -227,7 +226,6 @@ async function saveSystemSetting(value: { [key: string]: any }) {
|
|||||||
async function saveBasicSettings() {
|
async function saveBasicSettings() {
|
||||||
if (await saveSystemSetting(SystemSettings.value.Basic)) {
|
if (await saveSystemSetting(SystemSettings.value.Basic)) {
|
||||||
$toast.success(t('setting.system.basicSaveSuccess'))
|
$toast.success(t('setting.system.basicSaveSuccess'))
|
||||||
await reloadSystem()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -238,7 +236,6 @@ async function saveAdvancedSettings() {
|
|||||||
if (await saveSystemSetting(SystemSettings.value.Advanced)) {
|
if (await saveSystemSetting(SystemSettings.value.Advanced)) {
|
||||||
advancedDialog.value = false
|
advancedDialog.value = false
|
||||||
$toast.success(t('setting.system.advancedSaveSuccess'))
|
$toast.success(t('setting.system.advancedSaveSuccess'))
|
||||||
await reloadSystem()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user