mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-09 05:00:30 +08:00
opti: delete debug info
This commit is contained in:
parent
b83533ee82
commit
7ceb392910
@ -74,14 +74,7 @@ function sandbox(context = {}, script) {
|
||||
return context;
|
||||
}
|
||||
|
||||
|
||||
// function HandleAfterScript(body, script){
|
||||
// return body;
|
||||
// }
|
||||
|
||||
function crossRequest(defaultOptions, preScript, afterScript) {
|
||||
// preScript = `query.ttt="hello"; requestBody.aaaa= filter("3333 | md5 | substr:1, 5")`
|
||||
// afterScript = `console.log(responseData); context.responseData='hello'`
|
||||
let options = Object.assign({}, defaultOptions);
|
||||
let urlObj = URL.parse(options.url, true), query = {};
|
||||
query = Object.assign(query, urlObj.query);
|
||||
|
@ -190,7 +190,6 @@ class InterfaceColContent extends Component {
|
||||
try {
|
||||
let data = await crossRequest(options, interfaceData.pre_script, interfaceData.after_script)
|
||||
let res = data.res.body = json_parse(data.res.body);
|
||||
console.log(options)
|
||||
result = {
|
||||
...options,
|
||||
...result,
|
||||
|
Loading…
Reference in New Issue
Block a user