feat: Add update event handling for dataset operations and improve dataset editing logic

This commit is contained in:
chenghh-9609
2025-10-24 09:41:24 +08:00
parent 5d937a7ef3
commit 05dc69026e
6 changed files with 30 additions and 23 deletions

View File

@@ -28,6 +28,7 @@ export default function EditDataset({
tags: [],
});
const fetchDataset = async () => {
if (!open) return;
// 如果有id,说明是编辑模式
if (data && data.id) {
const { data: newData } = await queryDatasetByIdUsingGet(data.id);