fix(design): connect video preparation and playable history
This commit is contained in:
@@ -94,6 +94,15 @@ function decodeUserInput(value: unknown): DesignUserInput {
|
||||
}
|
||||
return { kind: 'direct_edit', operations: input.operations.map(decodeFieldOperation) };
|
||||
}
|
||||
if (input.kind === 'prepare_generation') {
|
||||
if (input.operations !== undefined && !Array.isArray(input.operations)) {
|
||||
invalidCommand('制作方案整理的字段操作无效');
|
||||
}
|
||||
return {
|
||||
kind: 'prepare_generation',
|
||||
operations: input.operations?.map(decodeFieldOperation) ?? [],
|
||||
};
|
||||
}
|
||||
if (input.kind === 'chat') {
|
||||
return { kind: 'chat', message: requiredString(input.message, '消息') };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user