diff --git a/widget/generate-code/src/main/resources/generate/ts/action_method_void.txt b/widget/generate-code/src/main/resources/generate/ts/action_method_void.txt index 6f55826de..7fd79bd23 100644 --- a/widget/generate-code/src/main/resources/generate/ts/action_method_void.txt +++ b/widget/generate-code/src/main/resources/generate/ts/action_method_void.txt @@ -8,17 +8,17 @@ * const ${bizDataName}: ${bizDataType} = ...; * ${actionSimpleName}.of${actionMethodName}(${bizDataName}); */ - static of${actionMethodName}(${bizDataName}: ${bizDataType}): RequestCommand { + static of${actionMethodName}(${bizDataName}: ${protoPrefix}${bizDataType}): RequestCommand { <% if (internalBizDataType) { %> return RequestCommand.of${sdkMethodName!}(this.${memberCmdName}, ${bizDataName}).execute(); <% } else if (bizDataTypeIsList) { %> const dataList = ${bizDataName}.map(o => { - return toBinary(${actualTypeName}Schema, o); + return toBinary(${protoPrefix}${actualTypeName}Schema, o); }); return RequestCommand.of${sdkMethodName}(this.${memberCmdName}, dataList).execute(); <% } else { %> - const data = toBinary(${bizDataType}Schema, ${bizDataName}); + const data = toBinary(${protoPrefix}${bizDataType}Schema, ${bizDataName}); const requestCommand = RequestCommand.of(this.${memberCmdName}, data); requestCommand.dataSource = ${bizDataName}; return requestCommand.execute();