mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-07 00:36:41 +08:00
更新设置相关组件:优化错误提示信息,增强用户反馈
This commit is contained in:
@@ -133,6 +133,11 @@ async function saveSearchSetting() {
|
||||
selectedMediaSource.value.join(','),
|
||||
)
|
||||
|
||||
if (!result1 || !result1.success) {
|
||||
$toast.error(`媒体搜索数据源保存失败:${result1?.message}!`)
|
||||
return
|
||||
}
|
||||
|
||||
const result2: { [key: string]: any } = await api.post(
|
||||
'system/setting/SearchFilterRuleGroups',
|
||||
selectedFilterGroup.value,
|
||||
@@ -140,7 +145,7 @@ async function saveSearchSetting() {
|
||||
|
||||
const result3 = await saveSystemSetting(SystemSettings.value.Basic)
|
||||
|
||||
if (result1.success && result2.success && result3) {
|
||||
if (result2.success && result3) {
|
||||
$toast.success('搜索基础设置保存成功')
|
||||
} else {
|
||||
$toast.error('搜索基础设置保存失败!')
|
||||
|
||||
Reference in New Issue
Block a user