From 4960ab2c59fac5da868d1c81ea861165a7a9bce4 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 23 Feb 2022 17:43:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89case?= =?UTF-8?q?=E5=88=97=E8=A1=A8=EF=BC=8C=E7=82=B9=E5=87=BB=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=8F=98=E6=9B=B4=E8=AE=B0=E5=BD=95=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E8=AF=A6=E6=83=85=E6=8A=A5=E9=94=99=E7=9A=84=E7=BC=BA?= =?UTF-8?q?=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010573 --user=王孝刚 【接口测试】-接口定义-case列表,点击编辑查看 变更记录,点击查看详情报错 https://www.tapd.cn/55049933/s/1109146 --- frontend/src/business/components/history/HistoryDetail.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/history/HistoryDetail.vue b/frontend/src/business/components/history/HistoryDetail.vue index d9301a0f0e..14ba87bb30 100644 --- a/frontend/src/business/components/history/HistoryDetail.vue +++ b/frontend/src/business/components/history/HistoryDetail.vue @@ -39,8 +39,8 @@ methods: { getDiff(v1, v2) { if (this.detail.columnName==='request' && v1 && v2){ - let delta = jsondiffpatch.diff(JSON.parse(v1) , JSON.parse(v2)); - return formattersHtml.format(delta, JSON.parse(v1)); + let delta = jsondiffpatch.diff(JSON.parse(JSON.stringify(v1)), JSON.parse(JSON.stringify(v2))); + return formattersHtml.format(delta, JSON.parse(JSON.stringify(v1))); } let delta = jsondiffpatch.diff(v1 , v2); return formattersHtml.format(delta, v1);