feat: 生成成功改为 toast 提示

- 使用 sonner toast 显示成功提示
- 简化提示:生成完成 + 数据条数
- 仅在失败或有警告时显示结果面板
- 使用 useRef 记录已触发的 result
- 仅在新 result 时触发 toast
This commit is contained in:
雨霖铃
2026-06-06 10:57:37 +08:00
parent a374bf456d
commit 31b6edf06b
2 changed files with 24 additions and 1 deletions
+8
View File
@@ -1067,6 +1067,14 @@
"message": "生成成功",
"description": "Translation key: testDataGenerator_success"
},
"testDataGenerator_generateSuccess": {
"message": "生成完成",
"description": "Translation key: testDataGenerator_generateSuccess"
},
"testDataGenerator_records": {
"message": "条数据",
"description": "Translation key: testDataGenerator_records"
},
"testDataGenerator_partialSuccess": {
"message": "部分成功",
"description": "Translation key: testDataGenerator_partialSuccess"