This commit is contained in:
2026-02-21 15:39:27 +08:00
commit 62f9812d24
45 changed files with 36361 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import Layout from './Layout.vue'
import type { Theme } from 'vitepress'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import { useSettingsStore } from './stores/settings'
import './style.css'
export default {
Layout,
enhanceApp({ app }) {
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
if (typeof window !== 'undefined') {
const settingsStore = useSettingsStore(pinia)
settingsStore.initTheme()
settingsStore.fetchVideoList()
}
}
} satisfies Theme