fix(notification): clarify query and progress feedback

This commit is contained in:
2026-07-17 10:48:58 +08:00
parent acf13639ef
commit 202f18332f
8 changed files with 256 additions and 2 deletions
@@ -88,6 +88,21 @@ const SchemeQuery: React.FC<Props> = ({
});
const nextSchemes = response.data as LeakageSchemeRecord[];
setSchemes(nextSchemes);
if (nextSchemes.length === 0) {
open?.({
type: "error",
message: "查询结果",
description: queryAll
? "没有找到任何方案"
: `${queryDate?.format("YYYY-MM-DD")} 没有找到相关方案`,
});
} else {
open?.({
type: "success",
message: "查询成功",
description: `共找到 ${nextSchemes.length} 条方案记录`,
});
}
} catch (error: any) {
open?.({
type: "error",