This commit is contained in:
zhaomeijing
2022-06-23 16:57:01 +08:00
parent ce78b75ee5
commit 84c6f03ee3
2 changed files with 4 additions and 1 deletions
@@ -213,7 +213,9 @@ export default {
} else if (this.selectedRowKeys.length > 1) {
this.$message.warning(this.$t('OnlyOneSelected'))
} else {
this.formData.title = this.formData.title.trim()
if(this.formData.title !== undefined) {
this.formData.title = this.formData.title.trim()
}
this.$refs.ruleForm.validate(valid => {
if (valid) {
this.flag = true