diff --git a/web/src/pages/Setting/Operation/SettingsCreditLimit.js b/web/src/pages/Setting/Operation/SettingsCreditLimit.js index 80e6191c..ed5862a7 100644 --- a/web/src/pages/Setting/Operation/SettingsCreditLimit.js +++ b/web/src/pages/Setting/Operation/SettingsCreditLimit.js @@ -40,13 +40,13 @@ export default function SettingsCreditLimit(props) { if (requestQueue.length === 1) { if (res.includes(undefined)) return; } else if (requestQueue.length > 1) { - if (res.includes(undefined)) return showError('部分更新失败,请重试'); + if (res.includes(undefined)) return showError('部分保存失败,请重试'); } - showSuccess('更新成功'); + showSuccess('保存成功'); props.refresh(); }) .catch(() => { - showError('更新失败'); + showError('保存失败,请重试'); }) .finally(() => { setLoading(false); diff --git a/web/src/pages/Setting/Operation/SettingsDataDashboard.js b/web/src/pages/Setting/Operation/SettingsDataDashboard.js index 263f7cbd..de0911e8 100644 --- a/web/src/pages/Setting/Operation/SettingsDataDashboard.js +++ b/web/src/pages/Setting/Operation/SettingsDataDashboard.js @@ -44,13 +44,13 @@ export default function DataDashboard(props) { if (requestQueue.length === 1) { if (res.includes(undefined)) return; } else if (requestQueue.length > 1) { - if (res.includes(undefined)) return showError('部分更新失败'); + if (res.includes(undefined)) return showError('部分保存失败,请重试'); } - showSuccess('更新成功'); + showSuccess('保存成功'); props.refresh(); }) .catch(() => { - showError('更新失败'); + showError('保存失败,请重试'); }) .finally(() => { setLoading(false); diff --git a/web/src/pages/Setting/Operation/SettingsDrawing.js b/web/src/pages/Setting/Operation/SettingsDrawing.js index c9f63afe..bb1c047e 100644 --- a/web/src/pages/Setting/Operation/SettingsDrawing.js +++ b/web/src/pages/Setting/Operation/SettingsDrawing.js @@ -41,13 +41,13 @@ export default function SettingsDrawing(props) { if (requestQueue.length === 1) { if (res.includes(undefined)) return; } else if (requestQueue.length > 1) { - if (res.includes(undefined)) return showError('部分更新失败'); + if (res.includes(undefined)) return showError('部分保存失败,请重试'); } - showSuccess('更新成功'); + showSuccess('保存成功'); props.refresh(); }) .catch(() => { - showError('更新失败'); + showError('保存失败,请重试'); }) .finally(() => { setLoading(false); diff --git a/web/src/pages/Setting/Operation/SettingsGeneral.js b/web/src/pages/Setting/Operation/SettingsGeneral.js index 314068a2..ef52371e 100644 --- a/web/src/pages/Setting/Operation/SettingsGeneral.js +++ b/web/src/pages/Setting/Operation/SettingsGeneral.js @@ -47,13 +47,13 @@ export default function GeneralSettings(props) { if (requestQueue.length === 1) { if (res.includes(undefined)) return; } else if (requestQueue.length > 1) { - if (res.includes(undefined)) return showError('部分更新失败'); + if (res.includes(undefined)) return showError('部分保存失败,请重试'); } - showSuccess('更新成功'); + showSuccess('保存成功'); props.refresh(); }) .catch(() => { - showError('更新失败'); + showError('保存失败,请重试'); }) .finally(() => { setLoading(false); diff --git a/web/src/pages/Setting/Operation/SettingsLog.js b/web/src/pages/Setting/Operation/SettingsLog.js index 1a9b5094..6977dcac 100644 --- a/web/src/pages/Setting/Operation/SettingsLog.js +++ b/web/src/pages/Setting/Operation/SettingsLog.js @@ -43,13 +43,13 @@ export default function SettingsLog(props) { if (requestQueue.length === 1) { if (res.includes(undefined)) return; } else if (requestQueue.length > 1) { - if (res.includes(undefined)) return showError('部分更新失败'); + if (res.includes(undefined)) return showError('部分保存失败,请重试'); } - showSuccess('更新成功'); + showSuccess('保存成功'); props.refresh(); }) .catch(() => { - showError('更新失败'); + showError('保存失败,请重试'); }) .finally(() => { setLoading(false); diff --git a/web/src/pages/Setting/Operation/SettingsMagnification.js b/web/src/pages/Setting/Operation/SettingsMagnification.js index 849a9ade..9c647937 100644 --- a/web/src/pages/Setting/Operation/SettingsMagnification.js +++ b/web/src/pages/Setting/Operation/SettingsMagnification.js @@ -43,13 +43,14 @@ export default function SettingsMagnification(props) { if (requestQueue.length === 1) { if (res.includes(undefined)) return; } else if (requestQueue.length > 1) { - if (res.includes(undefined)) return showError('部分更新失败'); + if (res.includes(undefined)) + return showError('部分保存失败,请重试'); } - showSuccess('更新成功'); + showSuccess('保存成功'); props.refresh(); }) .catch(() => { - showError('更新失败'); + showError('保存失败,请重试'); }) .finally(() => { setLoading(false); diff --git a/web/src/pages/Setting/Operation/SettingsMonitoring.js b/web/src/pages/Setting/Operation/SettingsMonitoring.js index b8c891c8..fc86b974 100644 --- a/web/src/pages/Setting/Operation/SettingsMonitoring.js +++ b/web/src/pages/Setting/Operation/SettingsMonitoring.js @@ -40,13 +40,13 @@ export default function SettingsMonitoring(props) { if (requestQueue.length === 1) { if (res.includes(undefined)) return; } else if (requestQueue.length > 1) { - if (res.includes(undefined)) return showError('部分更新失败'); + if (res.includes(undefined)) return showError('部分保存失败,请重试'); } - showSuccess('更新成功'); + showSuccess('保存成功'); props.refresh(); }) .catch(() => { - showError('更新失败'); + showError('保存失败,请重试'); }) .finally(() => { setLoading(false); diff --git a/web/src/pages/Setting/Operation/SettingsSensitiveWords.js b/web/src/pages/Setting/Operation/SettingsSensitiveWords.js index 279e304a..21583b60 100644 --- a/web/src/pages/Setting/Operation/SettingsSensitiveWords.js +++ b/web/src/pages/Setting/Operation/SettingsSensitiveWords.js @@ -39,13 +39,13 @@ export default function SettingsSensitiveWords(props) { if (requestQueue.length === 1) { if (res.includes(undefined)) return; } else if (requestQueue.length > 1) { - if (res.includes(undefined)) return showError('部分更新失败'); + if (res.includes(undefined)) return showError('部分保存失败,请重试'); } - showSuccess('更新成功'); + showSuccess('保存成功'); props.refresh(); }) .catch(() => { - showError('更新失败'); + showError('保存失败,请重试'); }) .finally(() => { setLoading(false);