parent.vue
<children>
<section class="activity-intro-title">
<span class="title">活动介绍</span>
</section>
</children>
children.vue
<template>
<section class="contentTitleSlot-container">
<header>
<slot></slot>
</header>
</section>
</template>
<style lang="less">
.contentTitleSlot-container{
header{
padding:10px;
background:#fff;
display: flex;
align-items: center;
justify-content: space-between;
}
}
</style>
专门用你给的代码试了一下,没有问题
router用的lazyLoad
找找是不是其它问题吧,给的这些代码看不出来问题