vue 根节点 v-if导致父组件$ref引用undefined的问题

vue 2.4x版本会清理无节点的数据,会将refs设置为undefined,如果根节点有这种情况,暂时改成v-show,避免$ref失效问题

原文地址:https://www.cnblogs.com/gloxing/p/7529521.html