mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-11 10:00:08 +08:00
- 新增路由 plugin-app 与壳页,按 nav_key 尝试 AppPage{Pascal}/AppPage/Page
- DefaultLayout 与 appcenter 合并插件侧栏项;plugin/sidebar_nav 经 Pinia 去重缓存
- 工具 pluginSidebarNav、联邦 loader 与文档/示例更新;登出时清空侧栏缓存
Made-with: Cursor
19 lines
538 B
TypeScript
19 lines
538 B
TypeScript
import { createPinia } from 'pinia'
|
|
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
|
|
|
// 创建 Pinia 实例
|
|
const pinia = createPinia()
|
|
|
|
// 使用持久化插件
|
|
pinia.use(piniaPluginPersistedstate)
|
|
|
|
export default pinia
|
|
|
|
// 所有的 store
|
|
import { useAuthStore } from './auth'
|
|
import { useUserStore } from './user'
|
|
import { useGlobalSettingsStore } from './global'
|
|
import { usePluginSidebarNavStore } from './pluginSidebarNav'
|
|
|
|
export { useAuthStore, useUserStore, useGlobalSettingsStore, usePluginSidebarNavStore }
|