element-ui工作中遇到的问题记录

148 阅读1分钟

1.input,selsec v-model双向绑定后手动赋值后,数据不实时更新

解决:赋值时使用this.$set

this.$set(this.searchData, 'city', 1);