fix:(接口测试) 解决场景步骤-等待控制器ctrl+s保存失败问题 (#1331)

This commit is contained in:
Coooder-X 2021-02-01 15:51:55 +08:00 committed by chenjianxing
parent 31c00e1271
commit 384711ee8b
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<!--操作按钮--> <!--操作按钮-->
<div class="ms-opt-btn"> <div class="ms-opt-btn">
<el-button type="primary" size="small" @click="editScenario" title="ctrl + s">{{$t('commons.save')}}</el-button> <el-button id="inputDelay" type="primary" size="small" @click="editScenario" title="ctrl + s">{{$t('commons.save')}}</el-button>
</div> </div>
<div class="tip">{{$t('test_track.plan_view.base_info')}}</div> <div class="tip">{{$t('test_track.plan_view.base_info')}}</div>
@ -834,6 +834,7 @@
return bodyUploadFiles; return bodyUploadFiles;
}, },
editScenario() { editScenario() {
document.getElementById("inputDelay").focus(); // input
this.$refs['currentScenario'].validate((valid) => { this.$refs['currentScenario'].validate((valid) => {
if (valid) { if (valid) {
this.setParameter(); this.setParameter();