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

fix: 修改数据源

parent 593bd720
...@@ -924,11 +924,15 @@ const ConfigurationView = (props) => { ...@@ -924,11 +924,15 @@ const ConfigurationView = (props) => {
try { try {
dataCaseArr.forEach((item, index) => { dataCaseArr.forEach((item, index) => {
const time = new Date().getTime() + index; const time = new Date().getTime() + index;
const params = let params,
item && item.parameters data = {};
? (isJson(item.parameters) && JSON.parse(item.parameters)) || {} try {
: {}; params =
const data = item && item.body ? (isJson(item.body) && JSON.parse(item.body)) || {} : {}; new Function('moment', (item && item.parameters) || '')(moment) || {};
} catch (err) {}
try {
data = new Function('moment', (item && item.body) || '')(moment) || {};
} catch (err) {}
axios({ axios({
method: item.method, method: item.method,
url: item.url, 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