fix(接口测试): 修复逻辑控制器禁用状态初始化无效的bug

This commit is contained in:
q4speed 2020-09-18 15:12:21 +08:00
parent 0952b270a1
commit ae8bf4dc40
1 changed files with 2 additions and 2 deletions

View File

@ -856,7 +856,7 @@ export class Controller extends BaseConfig {
super();
this.type = type
options.id = options.id || uuid();
options.enable = options.enable || true;
options.enable = options.enable === undefined ? true : options.enable;
}
}
@ -894,7 +894,7 @@ export class Timer extends BaseConfig {
super();
this.type = type;
options.id = options.id || uuid();
options.enable = options.enable || true;
options.enable = options.enable === undefined ? true : options.enable;
}
}