[Vuejs]-How to set value el-input in function in js

0👍

value binding shouldn’t be necessary. Let 2 way v-model binding handle it for you and mutate that

<el-form-item :label="$t('elements.latitude')" prop="latitude">
     <el-input v-model="createForm.latitude" />
</el-form-item>
queryPlaid(){
  this.createForm.latitude = this.createForm.plaid;
}

Leave a comment