fix[ts]: There is a problem with the protocol file in the deeper folder by exporting the code, and there is a problem with introducing the IByteBuffer path

This commit is contained in:
godotg
2024-05-29 11:12:59 +08:00
parent 8b1587f56b
commit c70886f7e2
@@ -234,7 +234,7 @@ public class CodeGenerateTypeScript implements ICodeGenerate {
// import IByteBuffer first
var protocolId = registration.getId();
var importBuilder = new StringBuilder();
var protocolPath = GenerateProtocolPath.getProtocolPath(protocolId);
var protocolPath = GenerateProtocolPath.protocolPath(protocolId);
var splits = protocolPath.split(StringUtils.PERIOD_REGEX);
importBuilder.append(StringUtils.format("import IByteBuffer from '{}IByteBuffer';", "../".repeat(splits.length))).append(LS);