问题描述: 在切换下拉选框的change事件中使用this.$refs.tree.setCheckedKeys([])清空目标树已选择节点,但不生效。 问题解决 // 清空 clearAllNodes: function() { this.$nextTick(function() { this.$refs.tree.setCheckedKeys([]) }) }, 关键:使用this.$nextTick()在清空所选树节点结束之后执行延迟回调