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

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

View File

@ -90,7 +90,6 @@ import MsCodeEdit from '../MsCodeEdit';
import MsDropdown from '../../../../business/commons/MsDropdown';
import { BODY_FORMAT } from '../../model/ApiTestModel';
import MsSqlResultTable from './SqlResultTable';
import { downloadByURL } from 'fit2cloud-ui/src/tools/utils';
export default {
name: 'MsResponseResult',
@ -141,6 +140,14 @@ export default {
this.setReqMessage();
this.showPicture();
},
activeName: {
handler() {
setTimeout(() => {
this.$refs.codeEdit?.$el.querySelector('.ace_text-input')?.focus();
}, 0);
},
immediate: true,
},
},
methods: {
modeChange(mode) {