Commit d56b1d02 by Sixong.Zhu

add data

parent 52f58fa8
Showing with 11 additions and 3 deletions
...@@ -108,9 +108,17 @@ class WebMonitor { ...@@ -108,9 +108,17 @@ class WebMonitor {
r.config && r.config &&
r.config.params && r.config.params &&
msg.push(`Params: ${JSON.stringify(r.config.params)}`); msg.push(`Params: ${JSON.stringify(r.config.params)}`);
r.config && if (r.config && r.config.data) {
r.config.data && const form = r.config.data as FormData;
msg.push(`Payload: ${JSON.stringify(r.config.data)}`); if (form.getAll) {
const p = form.getAll('parameters');
for (const item of p) {
msg.push(`Payload: ${item}`);
}
} else {
msg.push(`Payload: ${JSON.stringify(r.config.data)}`);
}
}
msg.push( msg.push(
`Exception: ${( `Exception: ${(
......
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 sign in to comment