fix(系统设置): 复制http配置不会复制请求头
--bug=1011388 --user=李玉号 【系统设置】github#11598,复制 http 配置不会复制请求头 https://www.tapd.cn/55049933/s/1121048 Closes #11598
This commit is contained in:
parent
325e8d9041
commit
8a5b9355f1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue