From 4be0e607289961272b5177225a19c8e96f1ad094 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Wed, 21 Sep 2022 16:34:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=89=A7=E8=A1=8C=E6=8E=A5=E5=8F=A3=E5=AE=9A?= =?UTF-8?q?=E4=B9=89console=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001017109 --- .../components/api/definition/components/list/ApiList.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/definition/components/list/ApiList.vue b/frontend/src/business/components/api/definition/components/list/ApiList.vue index 92ead3742f..e4fe510404 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiList.vue @@ -785,7 +785,13 @@ export default { this.$emit('copyApi', obj); }, runApi(row) { - let request = row ? JSON.parse(row.request) : {}; + let request; + if (typeof (row.request) === 'string') { + request = row ? JSON.parse(row.request) : {}; + } else { + request = row ? row.request : {}; + } + if (row.tags instanceof Array) { row.tags = JSON.stringify(row.tags); }