2 Commits

Author SHA1 Message Date
2aea1eae7f [Feature]
All checks were successful
Node.js CI / build-and-test (push) Successful in 24s
为 SSR 的导航菜单添加链接
2025-05-16 09:31:13 +08:00
063a1330d7 [Feature]
All checks were successful
Node.js CI / build-and-test (push) Successful in 31s
为 Markdown 启用自定义 Hr 组件
2025-05-16 09:01:11 +08:00
2 changed files with 6 additions and 3 deletions

View File

@ -98,7 +98,7 @@ onMounted(async () => {
<li v-for="item in routeStore.allRoutes" <li v-for="item in routeStore.allRoutes"
:key="item.path" :key="item.path"
:class="{ 'active-item' : item.path == $route.path }" :class="{ 'active-item' : item.path == $route.path }"
>{{ item.name }}</li> ><a :href="item.path">{{ item.name }}</a></li>
</ul> </ul>
</template></ClientOnly> </template></ClientOnly>
</nav> </nav>

View File

@ -19,8 +19,11 @@ export default defineConfig({
}), }),
vueJsx(), vueJsx(),
vueDevTools(), vueDevTools(),
markdown() markdown({
markdownItSetup(md) {
md.renderer.rules.hr = () => "<Hr />"
}
})
], ],
resolve: { resolve: {
alias: { alias: {