fix: 自定义ID输入框过滤输入的首尾空白字符#1005283

--bug=1005283 --user=lyh 【系统设置-项目】【项目管理-更新】自定义id为空格,依然可以保存
https://www.tapd.cn/55049933/s/1026776
This commit is contained in:
shiziyuan9527 2021-07-21 10:54:04 +08:00 committed by 刘瑞斌
parent 2b7109ab85
commit ea927a82fc
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@
</el-col>
<el-col :span="7" v-if="customNum">
<el-form-item label="ID" prop="customNum">
<el-input v-model="currentScenario.customNum" size="small"></el-input>
<el-input v-model.trim="currentScenario.customNum" size="small"></el-input>
</el-form-item>
</el-col>
</el-row>

View File

@ -65,7 +65,7 @@
<el-row v-if="customNum">
<el-col :span="7">
<el-form-item label="ID" :label-width="formLabelWidth" prop="customNum">
<el-input :disabled="readOnly" v-model="form.customNum" size="small" class="ms-case-input"></el-input>
<el-input :disabled="readOnly" v-model.trim="form.customNum" size="small" class="ms-case-input"></el-input>
</el-form-item>
</el-col>
</el-row>