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