Commit dedcc4d1 authored by 李纪文's avatar 李纪文

fix: 修改数据源

parent 593bd720
......@@ -924,11 +924,15 @@ const ConfigurationView = (props) => {
try {
dataCaseArr.forEach((item, index) => {
const time = new Date().getTime() + index;
const params =
item && item.parameters
? (isJson(item.parameters) && JSON.parse(item.parameters)) || {}
: {};
const data = item && item.body ? (isJson(item.body) && JSON.parse(item.body)) || {} : {};
let params,
data = {};
try {
params =
new Function('moment', (item && item.parameters) || '')(moment) || {};
} catch (err) {}
try {
data = new Function('moment', (item && item.body) || '')(moment) || {};
} catch (err) {}
axios({
method: item.method,
url: item.url,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment