fix(性能测试): 修复性能测试csv打开分割没有显示的问题
--bug=1010923 --user=刘瑞斌 【性能测试】开启csv分割后保存,保存没生效 https://www.tapd.cn/55049933/s/1115018
This commit is contained in:
parent
5fe166716f
commit
da960dd939
|
@ -522,12 +522,7 @@ export default {
|
|||
}
|
||||
},
|
||||
csvFiles() {
|
||||
if (this.csvConfig && this.csvFiles) {
|
||||
this.csvFiles.forEach(f => {
|
||||
f.csvSplit = this.csvConfig[f.name]?.csvSplit;
|
||||
f.csvHasHeader = this.csvConfig[f.name]?.csvHasHeader;
|
||||
});
|
||||
}
|
||||
this.refreshCsv();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -553,9 +548,18 @@ export default {
|
|||
this.properties = data.properties || [];
|
||||
this.systemProperties = data.systemProperties || [];
|
||||
this.csvConfig = data.csvConfig;
|
||||
this.refreshCsv();
|
||||
}
|
||||
});
|
||||
},
|
||||
refreshCsv() {
|
||||
if (this.csvConfig && this.csvFiles) {
|
||||
this.csvFiles.forEach(f => {
|
||||
f.csvSplit = this.csvConfig[f.name]?.csvSplit;
|
||||
f.csvHasHeader = this.csvConfig[f.name]?.csvHasHeader;
|
||||
});
|
||||
}
|
||||
},
|
||||
add(dataName) {
|
||||
if (dataName === 'domains') {
|
||||
this[dataName].push({
|
||||
|
|
Loading…
Reference in New Issue