💬 fix(PersonalSetting): improve notification message accuracy for settings save operation

- Change success message from "通知设置已更新" to "设置保存成功"
- Change error message from "更新通知设置失败" to "设置保存失败"
- Makes messages more generic since the function saves multiple types of settings (notification, pricing, IP logging) not just notification settings
This commit is contained in:
Apple\Apple
2025-06-13 01:43:43 +08:00
parent a8a2141626
commit f844772126
2 changed files with 5 additions and 3 deletions

View File

@@ -368,13 +368,13 @@ const PersonalSetting = () => {
});
if (res.data.success) {
showSuccess(t('通知设置已更新'));
showSuccess(t('设置保存成功'));
await getUserData();
} else {
showError(res.data.message);
}
} catch (error) {
showError(t('更新通知设置失败'));
showError(t('设置保存失败'));
}
};