fix(系统设置): 复制http配置不会复制请求头

--bug=1011388 --user=李玉号 【系统设置】github#11598,复制 http 配置不会复制请求头
https://www.tapd.cn/55049933/s/1121048

Closes #11598
This commit is contained in:
shiziyuan9527 2022-03-18 16:56:38 +08:00 committed by shiziyuan9527
parent 325e8d9041
commit 8a5b9355f1
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ export default {
return;
}
const index = this.httpConfig.conditions.findIndex((d) => d.id === row.id);
let obj = {id: getUUID(), type: row.type, socket: row.socket, details: row.details, protocol: row.protocol, headers: JSON.parse(JSON.stringify(this.condition.headers)), domain: row.domain, time: new Date().getTime()};
let obj = {id: getUUID(), type: row.type, socket: row.socket, details: row.details, protocol: row.protocol, headers: JSON.parse(JSON.stringify(row.headers)), domain: row.domain, time: new Date().getTime()};
if (index != -1) {
this.httpConfig.conditions.splice(index, 0, obj);
} else {