父组件加载完后再加载子组件 父组件.vue //引用子组件时设置`v-if=flag`为false,等数据准备后再将flag设置为true <template> ... <child v-if="flag"></child> ... </template> <script> ... //获取数据 this.flag=true ... </script>