新增错误消息防抖机制,优化错误提示显示并清理冗余代码

This commit is contained in:
WUSIJIAN
2026-01-05 10:05:25 +08:00
parent c5c1c32193
commit 3ee3c90462
14 changed files with 49 additions and 38 deletions

View File

@@ -162,7 +162,7 @@ const onSubmit = async () => {
emit('refresh');
} catch (error) {
console.error('提交失败:', error);
ElMessage.error('操作失败');
// 错误已由请求拦截器统一处理
} finally {
state.loading = false;
}