mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
Show progress on route change
This commit is contained in:
parent
ea66ff6c03
commit
3c525af917
5 changed files with 130 additions and 5 deletions
|
|
@ -1,11 +1,14 @@
|
|||
import { type Theme } from "vitepress";
|
||||
import DefaultTheme from "vitepress/theme";
|
||||
import Layout from "./Layout.vue";
|
||||
import { loadProgress } from "./composables/nprogress";
|
||||
import "./style.css";
|
||||
import "uno.css";
|
||||
|
||||
export default {
|
||||
extends: DefaultTheme,
|
||||
Layout,
|
||||
enhanceApp({ app, router, siteData }) {},
|
||||
enhanceApp({ router }) {
|
||||
loadProgress(router);
|
||||
},
|
||||
} satisfies Theme;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue