diff --git a/src/components/olmap/SCADA/SCADADataPanel.tsx b/src/components/olmap/SCADA/SCADADataPanel.tsx index c8b4e40..adbeb05 100644 --- a/src/components/olmap/SCADA/SCADADataPanel.tsx +++ b/src/components/olmap/SCADA/SCADADataPanel.tsx @@ -557,7 +557,11 @@ const SCADADataPanel: React.FC = ({ open?.({ type: "error", message: "数据清洗失败", - description: err.response?.data?.message || err.message || "未知错误", + description: + err.response?.data?.detail || + err.response?.data?.message || + err.message || + "未知错误", }); } finally { setIsCleaning(false); diff --git a/src/components/olmap/SCADA/SCADADeviceList.tsx b/src/components/olmap/SCADA/SCADADeviceList.tsx index ce8bcf3..84a93a8 100644 --- a/src/components/olmap/SCADA/SCADADeviceList.tsx +++ b/src/components/olmap/SCADA/SCADADeviceList.tsx @@ -645,7 +645,11 @@ const SCADADeviceList: React.FC = ({ open?.({ type: "error", message: "数据清洗失败", - description: err.response?.data?.message || err.message || "未知错误", + description: + err.response?.data?.detail || + err.response?.data?.message || + err.message || + "未知错误", }); setIsCleaning(false); }