fix: body json 格式化大数字异常

This commit is contained in:
chenjianxing 2020-08-25 16:03:14 +08:00
parent 19224b367d
commit ae8389bb90
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,8 @@
format() {
if (this.mode === 'json') {
try {
this.formatData = JSON.stringify(JSON.parse(this.data), null, '\t');
var JSONbigString = require('json-bigint')({"storeAsString": true});
this.formatData = JSON.stringify(JSONbigString.parse(this.data), null, '\t');
} catch (e) {
if (this.data) {
this.formatData = this.data;