feat: 重构播放 store

This commit is contained in:
alger
2025-11-08 14:26:04 +08:00
parent 1005718c07
commit 34ba2250bf
10 changed files with 2317 additions and 1946 deletions
+4
View File
@@ -1,10 +1,14 @@
import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import { markRaw } from 'vue';
import router from '@/router';
// 创建 pinia 实例
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
// 添加路由到 Pinia
pinia.use(({ store }) => {
store.router = markRaw(router);