fix(接口测试): 【接口测试】github#26757,嵌套步骤展开响应内容字段聚焦
--bug=1030567 --user=白奇 【接口测试】github#26757,【特定场景脚本必现】浏览器访问接口自动化-编辑接口场景页面,浏览器报错,safari浏览器无法显示场景列表,谷歌浏览器样式存在穿透同时导致上下滚动页面到某处后页面自动上下胡乱滚动 https://www.tapd.cn/55049933/s/1430708
This commit is contained in:
parent
313def9dfa
commit
b95d029bca
|
@ -130,7 +130,7 @@ export default {
|
||||||
'image/webp',
|
'image/webp',
|
||||||
'image/svg+xml',
|
'image/svg+xml',
|
||||||
'image/apng',
|
'image/apng',
|
||||||
'image/avif'
|
'image/avif',
|
||||||
],
|
],
|
||||||
srcUrl: '',
|
srcUrl: '',
|
||||||
};
|
};
|
||||||
|
@ -141,15 +141,6 @@ export default {
|
||||||
this.setReqMessage();
|
this.setReqMessage();
|
||||||
this.showPicture();
|
this.showPicture();
|
||||||
},
|
},
|
||||||
activeName: {
|
|
||||||
handler() {
|
|
||||||
setTimeout(() => {
|
|
||||||
// 展开动画大概是 300ms 左右,使视觉效果更流畅
|
|
||||||
this.$refs.codeEdit?.$el.querySelector('.ace_text-input')?.focus();
|
|
||||||
}, 300);
|
|
||||||
},
|
|
||||||
immediate: true,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
modeChange(mode) {
|
modeChange(mode) {
|
||||||
|
@ -182,16 +173,16 @@ export default {
|
||||||
if (this.response && this.response.responseResult && this.response.responseResult.contentType) {
|
if (this.response && this.response.responseResult && this.response.responseResult.contentType) {
|
||||||
switch (this.response.responseResult.contentType) {
|
switch (this.response.responseResult.contentType) {
|
||||||
case 'application/json':
|
case 'application/json':
|
||||||
this.mode = BODY_FORMAT.JSON;
|
this.mode = BODY_FORMAT.JSON;
|
||||||
break;
|
break;
|
||||||
case 'text/html':
|
case 'text/html':
|
||||||
this.mode = BODY_FORMAT.HTML;
|
this.mode = BODY_FORMAT.HTML;
|
||||||
break;
|
break;
|
||||||
case 'text/xml':
|
case 'text/xml':
|
||||||
this.mode = BODY_FORMAT.XML;
|
this.mode = BODY_FORMAT.XML;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
this.mode = BODY_FORMAT.TEXT;
|
this.mode = BODY_FORMAT.TEXT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue