vue子组件调用 1、首先在大组件内导入小组件 import Header from '../components/Header' import Footer from '../components/Footer' 2、然后注册 export default { components: { Header: Header, Footer: Footer } }