|
@@ -89,7 +89,7 @@
|
|
|
<el-dialog title="新建" :visible.sync="dialogTaskName" class="autotest-dialog">
|
|
|
<el-form>
|
|
|
<el-form-item label="任务名称:" label-width="80">
|
|
|
- <el-input v-model="taskName" placeholder="请输入任务名称" autocomplete="off"></el-input>
|
|
|
+ <el-input v-model.tirm="taskName" placeholder="请输入任务名称" autocomplete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -189,7 +189,7 @@
|
|
|
this.dialogTaskName = true;
|
|
|
},
|
|
|
addTask(){
|
|
|
- if(!this.taskName){
|
|
|
+ if(!this.taskName.trim()){
|
|
|
this.warning("请输入任务名称");
|
|
|
return;
|
|
|
}
|