Solve the problem that the element-ui el-input input box cannot be edited and the response is delayed after assignment

First look at whether your input is bound to an attribute in the object

As follows:

 <el-input v-model="ruleForm.concernMember" placeholder="请输入关注人erp"></el-input>

 There are generally two solutions to this problem:

Solution 1: Assign an initial value to the value of input in data

ruleForm: {
           concernMember: ""
      },

Option 2: Use this.$set when assigning a value to input

this.$set(this.ruleForm, "concernMember", data);

Pro test, all work well. At this point, the problem is solved. 

 

Guess you like

Origin blog.csdn.net/a1059526327/article/details/108659882
Recommended