2026-05-24-15-55-48 增加项目锁定与切片控件修正

This commit is contained in:
2026-05-24 16:15:52 +08:00
parent e9f0823281
commit 3bedf204c8
14 changed files with 586 additions and 62 deletions

View File

@@ -114,6 +114,11 @@ export const api = {
request<{ ok: boolean; deletedId: string }>(`/api/projects/${projectId}`, {
method: 'DELETE',
}),
updateProjectLock: (projectId: string, locked: boolean) =>
request<Project>(`/api/projects/${projectId}/lock`, {
method: 'PATCH',
body: JSON.stringify({ locked }),
}),
updateProjectModuleStyles: (projectId: string, moduleStyles: Record<string, ModuleStyle>) =>
request<Project>(`/api/projects/${projectId}/module-styles`, {
method: 'PATCH',