fix(系统设置): 修复http配置-批量添加请求头value缺失的缺陷

--bug=1011432 --user=王孝刚
【环境配置】http配置-批量添加请求头(f12复制的接口请求数据)-host、Origin、Referer对应key数据缺失
https://www.tapd.cn/55049933/s/1121550
This commit is contained in:
wxg0103 2022-03-21 10:10:19 +08:00 committed by fit2-zhao
parent 65f70d8af5
commit 8461c0fbf7
1 changed files with 2 additions and 2 deletions

View File

@ -420,12 +420,12 @@ export default {
let keyValues = []; let keyValues = [];
params.forEach(item => { params.forEach(item => {
let line = item.split(/|:/); let line = item.split(/|:/);
let values = item.split(line[0] + ":");
let required = false; let required = false;
keyValues.unshift(new KeyValue({ keyValues.unshift(new KeyValue({
name: line[0], name: line[0],
required: required, required: required,
value: line[1], value: values[1],
description: line[2],
type: "text", type: "text",
valid: false, valid: false,
file: false, file: false,