2026-05-24-15-55-48 增加项目锁定与切片控件修正
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user