소스 검색

feat: home content link

Carson 11 달 전
부모
커밋
987e362f05
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 0
      components/CustomLayout.vue
  2. 2 2
      components/HomeContent.vue

+ 1 - 0
components/CustomLayout.vue

@@ -42,6 +42,7 @@ const docsLink = computed(() => {
 }
 .content-after {
   color: #2e5aa8;
+  padding: 0 12px;
   /* TODO */
 }
 </style>

+ 2 - 2
components/HomeContent.vue

@@ -16,7 +16,7 @@ const { localeIndex } = useData();
 const router = useRouter();
 const withLink = (href: string) => {
   return withBase(
-    path.join(localeIndex.value === "root" ? "" : localeIndex.value, "docs", href)
+    path.join('/', localeIndex.value === "root" ? "" : localeIndex.value, "docs", href)
   );
 };
 </script>
@@ -98,7 +98,7 @@ const withLink = (href: string) => {
             </HomeCard>
           </HomeCardContent>
           <HomeCardContent :span="8">
-            <HomeCard color="white" :link="withLink('TODO1')">
+            <HomeCard color="white" :link="withLink('课程授课#课程实施')">
               <template #title>
                 <HomeCard.Title>
                   <IconBook color="#FF822B" />