父组件向子孙组件传递数据provide/inject 父组件: provide(){ return { userInfo: this.userInfo } } 子孙组件: inject:["userInfo"],