提交计划去掉无人读取的 title 字段
- src/components/image-editor/model3d-generation/Model3dGenerationSubmission.ts:Model3dSubmissionPlanBase.title 没有任何消费方(调用方自己按 resolveModel3dResultTitle 重算),删除该字段与它的装配代码,避免把死数据当成权威标题
This commit is contained in:
@@ -48,7 +48,6 @@ type Model3dSubmissionPlanBase = {
|
||||
*/
|
||||
attemptNonce: string;
|
||||
requestKey: string;
|
||||
title: string;
|
||||
};
|
||||
|
||||
export type Model3dSubmissionPlan =
|
||||
@@ -169,7 +168,6 @@ export function buildModel3dSubmissionPlan({
|
||||
...(trimmedProjectId && canvasCompletion ? { canvasCompletion } : {}),
|
||||
};
|
||||
// 一个端点一个收口函数:端点字面量与提交体类型在同一处配对,判别联合据此收窄。
|
||||
const title = resolveModel3dResultTitle(dialog);
|
||||
const finishTextToModel = (
|
||||
body: Model3dTextToModelRequest,
|
||||
): { ok: true; plan: Model3dSubmissionPlan } => ({
|
||||
@@ -182,7 +180,6 @@ export function buildModel3dSubmissionPlan({
|
||||
endpoint: 'text-to-model',
|
||||
body,
|
||||
}),
|
||||
title,
|
||||
body,
|
||||
},
|
||||
});
|
||||
@@ -198,7 +195,6 @@ export function buildModel3dSubmissionPlan({
|
||||
endpoint: 'image-to-model',
|
||||
body,
|
||||
}),
|
||||
title,
|
||||
body,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user