fix: body json 格式化大数字异常
This commit is contained in:
parent
19224b367d
commit
ae8389bb90
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue