新增错误消息防抖机制,优化错误提示显示并清理冗余代码
This commit is contained in:
@@ -201,7 +201,7 @@ const dataList = async () => {
|
||||
tableData.total = res.data.total;
|
||||
} catch (error) {
|
||||
console.error('获取数据失败:', error);
|
||||
ElMessage.error('获取数据失败');
|
||||
// 错误已由请求拦截器统一处理
|
||||
} finally {
|
||||
tableData.loading = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user