Vue this.$refs 获取子组件 undefined

<el-dialog> 中使用时 需要确保 :open=true ,再 this.$refs 否则就会undefined

//这里要注意,el-dialog 里引用组件要

this.$nextTick(function () {
          this.$refs['Employee'].init(id);
        });

版权声明:本文为mbh12333原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。