慕田峪9158850
你没有贴App.vue中的代码 我不知道你写了没有Vue.use(Router)Vue.use(Vuex)export default new Router({ routes: [ { path: '/', component: App, redirect:'/in_theaters'}, { path: '/in_theaters', component: in_theaters, },{ path: '/coming_soon', component: coming_soon, }, { path: '/top250', component: top250, }, { path:'*', redirect:'/' } ]})配置完路由之后 要在App.vue中引用路由路径 这个content 大概的意思就是这个地方加载 你的Home.vue <el-col :md="14" :lg="18" class="content"> <router-view></router-view>
</el-col>