fix(接口测试): 修改报告复制响应内容报错问题

This commit is contained in:
xinxin.wu 2024-04-23 20:22:43 +08:00 committed by 刘瑞斌
parent 55871dfd9d
commit 0775d973cf
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@
const resBodyRef = ref(); const resBodyRef = ref();
function copyScript() { function copyScript() {
const encodingFormatValue = resBodyRef.value.responseEditorRef.getEncodingCode(); const encodingFormatValue = resBodyRef.value[0].responseEditorRef.getEncodingCode();
if (isSupported) { if (isSupported) {
copy(encodingFormatValue || ''); copy(encodingFormatValue || '');
Message.success(t('common.copySuccess')); Message.success(t('common.copySuccess'));