fix(测试跟踪): 测试计划选择环境报错

--bug=1017911 --user=陈建星 【测试跟踪】测试计划列表 - 执行测试计划-运行配置窗口,运行环境下拉框没有显示环境 https://www.tapd.cn/55049933/s/1262397
This commit is contained in:
chenjianxing 2022-10-15 12:46:24 +08:00 committed by jianxing
parent f72594aa29
commit 58764e4838
2 changed files with 4 additions and 3 deletions

View File

@ -113,12 +113,13 @@ export const EXTRACT_TYPE = {
XPATH: "XPath"
}
export class BaseConfig {
set(options, notUndefined) {
options = this.initOptions(options)
for (let name in options) {
if (options.hasOwnProperty(name)) {
if (Object.prototype.hasOwnProperty.call(options, name)) {
if (!(this[name] instanceof Array)) {
if (notUndefined === true) {
this[name] = options[name] === undefined ? this[name] : options[name];
@ -134,7 +135,7 @@ export class BaseConfig {
options = this.initOptions(options)
if (types) {
for (let name in types) {
if (types.hasOwnProperty(name) && options.hasOwnProperty(name)) {
if (options[name] !== null && Object.prototype.hasOwnProperty.call(types, name) && Object.prototype.hasOwnProperty.call(options, name)) {
options[name].forEach(o => {
this[name].push(new types[name](o));
})

View File

@ -193,7 +193,7 @@ export default {
.env-confirm {
margin-left: 20px;
width: 360px;
width: 90%;
margin-top: 10px;
}