refactor: 移除重复的成功提示消息

统一移除各组件中手动添加的ElMessage.success提示,改为由API调用或全局拦截器统一处理
This commit is contained in:
zhangtao
2025-08-11 23:56:10 +08:00
parent c760a53f34
commit 6f90622ed9
4 changed files with 2 additions and 7 deletions
-1
View File
@@ -420,7 +420,6 @@ const handleSave = async () => {
// 确保avatar字段被正确处理
const response = await UserAPI.updateCurrentUserInfo({...infoFormState});
await userStore.setUserInfo(response.data.data);
ElMessage.success('保存成功');
} catch (error) {
console.error(error);
ElMessage.error('保存失败,请重试');