前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
<template> <Layout> <template v-slot:head> 头部 </template> <!-- v-slot中的赋值是用:,而不是= --> <template v-slot:left> <AsideComp></AsideComp> </template> <template v-slot:right> 右边主要内容部分 </template> </Layout> </template> <script> import AsideComp from '../components/AsideComp.vue' import Layout from '../components/Layout.vue' export default{ components:{ AsideComp, Layout } } </script> <style> </style>