feat:脚本只读

This commit is contained in:
xiaozhu
2026-08-12 14:34:31 +08:00
parent dc4d190935
commit fe65034aa8
4 changed files with 364 additions and 157 deletions
+16
View File
@@ -413,6 +413,22 @@ export async function updateScript(
);
}
export async function getScriptContent(
workspaceId: string,
scriptId: string,
): Promise<{
script_id: string;
script_type: ScriptType;
content: string | object;
format: string;
}> {
return apiRequest(
`/api/v1/scripts/${scriptId}/content`,
{},
workspaceId,
).then((envelope) => (envelope as Record<string, any>).data);
}
export async function deleteScript(
workspaceId: string,
scriptId: string,