Commit ee2679b9 by Apple\Apple

💬 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
parent 3d3384fa
...@@ -368,13 +368,13 @@ const PersonalSetting = () => { ...@@ -368,13 +368,13 @@ const PersonalSetting = () => {
}); });
if (res.data.success) { if (res.data.success) {
showSuccess(t('通知设置已更新')); showSuccess(t('设置保存成功'));
await getUserData(); await getUserData();
} else { } else {
showError(res.data.message); showError(res.data.message);
} }
} catch (error) { } catch (error) {
showError(t('更新通知设置失败')); showError(t('设置保存失败'));
} }
}; };
......
...@@ -1650,5 +1650,7 @@ ...@@ -1650,5 +1650,7 @@
"IP记录": "IP Record", "IP记录": "IP Record",
"记录请求与错误日志 IP": "Record request and error log IP", "记录请求与错误日志 IP": "Record request and error log IP",
"开启后,仅“消费”和“错误”日志将记录您的客户端 IP 地址": "After enabling, only \"consumption\" and \"error\" logs will record your client IP address", "开启后,仅“消费”和“错误”日志将记录您的客户端 IP 地址": "After enabling, only \"consumption\" and \"error\" logs will record your client IP address",
"只有当用户设置开启IP记录时,才会进行请求和错误类型日志的IP记录": "Only when the user sets IP recording, the IP recording of request and error type logs will be performed" "只有当用户设置开启IP记录时,才会进行请求和错误类型日志的IP记录": "Only when the user sets IP recording, the IP recording of request and error type logs will be performed",
"设置保存成功": "Settings saved successfully",
"设置保存失败": "Settings save failed"
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment