fix(接口测试): 【接口测试】github#26757,嵌套步骤展开响应内容字段聚焦

--bug=1030567 --user=白奇 【接口测试】github#26757,【特定场景脚本必现】浏览器访问接口自动化-编辑接口场景页面,浏览器报错,safari浏览器无法显示场景列表,谷歌浏览器样式存在穿透同时导致上下滚动页面到某处后页面自动上下胡乱滚动 https://www.tapd.cn/55049933/s/1430708
This commit is contained in:
baiqi 2023-10-26 13:46:23 +08:00 committed by 刘瑞斌
parent 313def9dfa
commit b95d029bca
1 changed files with 6 additions and 15 deletions

View File

@ -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;
}
}