以下为el-input的代码。在被赋值后,输入框组件出现无法输入的问题。

<el-input
v-model="ruleForm.processReview"
class="oms-input"
type="textarea"
placeholder="请输入处理意见"
/>

解决方式:增加@input触发事件,即@input="change($event)"。

<el-input
v-model="ruleForm.processReview"
class="oms-input"
type="textarea"
placeholder="请输入处理意见"
@input="change($event)"
/>

触发change函数,强制刷新组件。

change(e){
this.$forceUpdate()
}

即可解决问题。