前端代码写得少,遇到了elementUI tree组件的数据回显问题,大部分给出的解决方法都是下边的方式,
this.$nextTick(() => {
this.$refs['lazyTree1'].setCheckedKeys(this.cityIds);
}),但我在项目中使用后无任何反应,请教哪位高手有解决过次问题
前端代码写得少,遇到了elementUI tree组件的数据回显问题,大部分给出的解决方法都是下边的方式,
this.$nextTick(() => {
this.$refs['lazyTree1'].setCheckedKeys(this.cityIds);
}),但我在项目中使用后无任何反应,请教哪位高手有解决过次问题