feat: 生成成功改为 toast 提示
- 使用 sonner toast 显示成功提示 - 简化提示:生成完成 + 数据条数 - 仅在失败或有警告时显示结果面板 - 使用 useRef 记录已触发的 result - 仅在新 result 时触发 toast
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user