fix: body json 格式化大数字异常
This commit is contained in:
parent
19224b367d
commit
ae8389bb90
|
@ -72,7 +72,8 @@
|
||||||
format() {
|
format() {
|
||||||
if (this.mode === 'json') {
|
if (this.mode === 'json') {
|
||||||
try {
|
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) {
|
} catch (e) {
|
||||||
if (this.data) {
|
if (this.data) {
|
||||||
this.formatData = this.data;
|
this.formatData = this.data;
|
||||||
|
|
Loading…
Reference in New Issue