From 9755573ef2e3ca14569fa47e2de573a309b6aeeb Mon Sep 17 00:00:00 2001 From: weifan she Date: Wed, 11 Jan 2023 12:53:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20JSON=20stringify=20=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E4=B8=AA=E5=8F=82=E6=95=B0=E4=BC=A0=E5=85=A52=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=20=E4=BC=9A=E6=B7=BB=E5=8A=A0\n=E5=92=8C=E7=A9=BA?= =?UTF-8?q?=E6=A0=BC=EF=BC=8C=E5=AF=BC=E8=87=B4=E5=8C=85=E4=BD=93=E7=A7=AF?= =?UTF-8?q?=E8=B6=85=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/import.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/import.js b/src/commands/import.js index 4f32ec1..f3ce82c 100644 --- a/src/commands/import.js +++ b/src/commands/import.js @@ -28,7 +28,7 @@ module.exports = { content = content.data; } if(typeof content === 'object' && content){ - content = JSON.stringify(content,null,2) + content = JSON.stringify(content) } if(!content){ return console.error('json 数据不能为空')