检查:
一_rules ref

<el-form :model="addForm" label-width="80px" :rules="addFormRules" ref="addForm">

二 prop值与绑定的属性一致

<el-form-item label="名称" prop="archiveName">

三 绑定属性

addFormRules: {
        archiveName: [
             { required: true, message: '请输入档案名称', trigger: 'blur' }
        ]
}

四 addForm 一致

 <el-form :model="addForm" label-width="80px" :rules="addFormRules" ref="addForm">
        <el-form-item label="名称" prop="archiveName">
          <el-input v-model="addForm.archiveName" auto-complete="off"></el-input>
        </el-form-item>
Logo

前往低代码交流专区

更多推荐