<u-form-item prop="account"><u-input v-model="form.account" placeholder="请输入账号"></u-input></u-form-item><u-form-item prop="password"><u-input class="inp" v-model="form.password" type="password" placeholder="请输入密码"></u-input></u-form-item>
rules: {account: [{required: true,message: '请填写账号',trigger: ['change', 'blur']}, ],password: [{required: true,message: '请填写密码',trigger: ['change', 'blur']}]}
添加表单验证数据