添加前端行为树复制接口

This commit is contained in:
2026-04-13 15:24:59 +08:00
parent 3946bc561a
commit 7c71a38f68

View File

@@ -40,6 +40,10 @@ export const updateTree = (rt: Partial<BehaviorTree>): Promise<BasicResponse> =>
return req.postJson(`/system/behaviortree`, rt);
};
export const copyTree = (rt: Partial<BehaviorTree>): Promise<BasicResponse> => {
return req.postJson(`/system/behaviortree/copy`, rt);
};
export const createTree = (rt: Partial<BehaviorTree>): Promise<BasicResponse> => {
return req.putJson(`/system/behaviortree`, rt);
};