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 b82fbfb9f1..8dc146f82a 100644 --- a/api-test/frontend/src/business/definition/components/response/ResponseResult.vue +++ b/api-test/frontend/src/business/definition/components/response/ResponseResult.vue @@ -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) {