From adfc21c48f56d0391c5364437d4852c7949d3d35 Mon Sep 17 00:00:00 2001 From: sendevia Date: Wed, 17 Dec 2025 22:27:48 +0800 Subject: [PATCH] feat: restructure layout imports --- .vitepress/theme/index.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.vitepress/theme/index.ts b/.vitepress/theme/index.ts index 9447e4b..f10c665 100644 --- a/.vitepress/theme/index.ts +++ b/.vitepress/theme/index.ts @@ -1,7 +1,11 @@ import type { Theme } from "vitepress"; import { createPinia } from "pinia"; -import Layout from "./layouts/Default.vue"; +// Layouts +import Default from "./layouts/Default.vue"; +import NotFound from "./layouts/NotFound.vue"; + +// Components import AppBar from "./components/AppBar.vue"; import ArticleMasonry from "./components/ArticleMasonry.vue"; import Button from "./components/Button.vue"; @@ -14,16 +18,18 @@ import PrevNext from "./components/PrevNext.vue"; import ScrollToTop from "./components/ScrollToTop.vue"; import NavBar from "./components/NavBar.vue"; +// Styles import "./styles/main.scss"; const pinia = createPinia(); export default { - Layout, + Layout: Default, + NotFound: NotFound, enhanceApp({ app }) { app.use(pinia); - app.component("MainLayout", Layout); + app.component("MainLayout", Default); app.component("AppBar", AppBar); app.component("ArticleMasonry", ArticleMasonry);