fix(接口测试): 修复逻辑控制器禁用状态初始化无效的bug
This commit is contained in:
parent
0952b270a1
commit
ae8bf4dc40
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue