Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 1125e47

Browse files
committed
Refactor: 重构实例更新请求参数
1 parent abaf6f7 commit 1125e47

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/entity/instance/Instance_config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export default class InstanceConfig {
4343
public fileCode: string = "utf-8";
4444
public processType: string = "general";
4545
public updateCommand: string = "";
46+
public crlf = 1; // 1: \n 2: \r\n
4647

4748
// 自定义命令列表
4849
public actionCommandList: IActionCommand[] = [];

src/entity/instance/instance.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ export default class Instance extends EventEmitter {
141141
configureEntityParams(this.config, cfg, "cwd", String);
142142
configureEntityParams(this.config, cfg, "ie", String);
143143
configureEntityParams(this.config, cfg, "oe", String);
144+
configureEntityParams(this.config, cfg, "crlf", Number);
144145
configureEntityParams(this.config, cfg, "endTime", String);
145146
configureEntityParams(this.config, cfg, "fileCode", String);
146147
configureEntityParams(this.config, cfg, "updateCommand", String);

0 commit comments

Comments
 (0)