ソースを参照

Merge remote-tracking branch 'origin/AIControlV1.3.1' into test

zhouna 5 年 前
コミット
f1b934e55c
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/components/qualityControl/AutoTestList.vue

+ 2 - 2
src/components/qualityControl/AutoTestList.vue

@@ -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;
         }