mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-18 00:24:20 +00:00
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:
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user