From b95d029bcaf0588646f1ef55e8de460ee3574faf Mon Sep 17 00:00:00 2001 From: baiqi Date: Thu, 26 Oct 2023 13:46:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E3=80=90=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95=E3=80=91github#26?= =?UTF-8?q?757=EF=BC=8C=E5=B5=8C=E5=A5=97=E6=AD=A5=E9=AA=A4=E5=B1=95?= =?UTF-8?q?=E5=BC=80=E5=93=8D=E5=BA=94=E5=86=85=E5=AE=B9=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E8=81=9A=E7=84=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1030567 --user=白奇 【接口测试】github#26757,【特定场景脚本必现】浏览器访问接口自动化-编辑接口场景页面,浏览器报错,safari浏览器无法显示场景列表,谷歌浏览器样式存在穿透同时导致上下滚动页面到某处后页面自动上下胡乱滚动 https://www.tapd.cn/55049933/s/1430708 --- .../components/response/ResponseResult.vue | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/api-test/frontend/src/business/definition/components/response/ResponseResult.vue b/api-test/frontend/src/business/definition/components/response/ResponseResult.vue index 8c9e2fa8d5..46070587ff 100644 --- a/api-test/frontend/src/business/definition/components/response/ResponseResult.vue +++ b/api-test/frontend/src/business/definition/components/response/ResponseResult.vue @@ -130,7 +130,7 @@ export default { 'image/webp', 'image/svg+xml', 'image/apng', - 'image/avif' + 'image/avif', ], srcUrl: '', }; @@ -141,15 +141,6 @@ export default { this.setReqMessage(); this.showPicture(); }, - activeName: { - handler() { - setTimeout(() => { - // 展开动画大概是 300ms 左右,使视觉效果更流畅 - this.$refs.codeEdit?.$el.querySelector('.ace_text-input')?.focus(); - }, 300); - }, - immediate: true, - }, }, methods: { modeChange(mode) { @@ -182,16 +173,16 @@ export default { if (this.response && this.response.responseResult && this.response.responseResult.contentType) { switch (this.response.responseResult.contentType) { case 'application/json': - this.mode = BODY_FORMAT.JSON; - break; + this.mode = BODY_FORMAT.JSON; + break; case 'text/html': - this.mode = BODY_FORMAT.HTML; + this.mode = BODY_FORMAT.HTML; break; case 'text/xml': - this.mode = BODY_FORMAT.XML; + this.mode = BODY_FORMAT.XML; break; default: - this.mode = BODY_FORMAT.TEXT; + this.mode = BODY_FORMAT.TEXT; break; } }