解决重复通知 key 的问题

This commit is contained in:
JIANG
2026-03-12 11:40:37 +08:00
parent a7f4867afe
commit 76aa28c701
3 changed files with 9 additions and 9 deletions
@@ -162,7 +162,7 @@ const AnalysisParameters: React.FC<Props> = ({ onResult }) => {
setRunning(true);
open?.({
key: "burst-location-analysis",
key: "burst-location-analysis-progress",
type: "progress",
message: "方案提交分析中",
undoableTimeout: 3,
@@ -193,14 +193,14 @@ const AnalysisParameters: React.FC<Props> = ({ onResult }) => {
onResult(response.data as BurstLocationResult);
open?.({
key: "burst-location-analysis",
key: "burst-location-analysis-success",
type: "success",
message: "爆管定位成功",
description: `定位到管段: ${(response.data as BurstLocationResult).located_pipe}`,
});
} catch (error: any) {
open?.({
key: "burst-location-analysis",
key: "burst-location-analysis-error",
type: "error",
message: "提交分析失败",
description: error?.response?.data?.detail ?? error?.message ?? "请求失败",