fix(测试跟踪): 测试计划选择环境报错
--bug=1017911 --user=陈建星 【测试跟踪】测试计划列表 - 执行测试计划-运行配置窗口,运行环境下拉框没有显示环境 https://www.tapd.cn/55049933/s/1262397
This commit is contained in:
parent
f72594aa29
commit
58764e4838
|
@ -113,12 +113,13 @@ export const EXTRACT_TYPE = {
|
||||||
XPATH: "XPath"
|
XPATH: "XPath"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export class BaseConfig {
|
export class BaseConfig {
|
||||||
|
|
||||||
set(options, notUndefined) {
|
set(options, notUndefined) {
|
||||||
options = this.initOptions(options)
|
options = this.initOptions(options)
|
||||||
for (let name in options) {
|
for (let name in options) {
|
||||||
if (options.hasOwnProperty(name)) {
|
if (Object.prototype.hasOwnProperty.call(options, name)) {
|
||||||
if (!(this[name] instanceof Array)) {
|
if (!(this[name] instanceof Array)) {
|
||||||
if (notUndefined === true) {
|
if (notUndefined === true) {
|
||||||
this[name] = options[name] === undefined ? this[name] : options[name];
|
this[name] = options[name] === undefined ? this[name] : options[name];
|
||||||
|
@ -134,7 +135,7 @@ export class BaseConfig {
|
||||||
options = this.initOptions(options)
|
options = this.initOptions(options)
|
||||||
if (types) {
|
if (types) {
|
||||||
for (let name in 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 => {
|
options[name].forEach(o => {
|
||||||
this[name].push(new types[name](o));
|
this[name].push(new types[name](o));
|
||||||
})
|
})
|
||||||
|
|
|
@ -193,7 +193,7 @@ export default {
|
||||||
|
|
||||||
.env-confirm {
|
.env-confirm {
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
width: 360px;
|
width: 90%;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue