feat: Add video detail management components and enhance video state sharing

This commit is contained in:
2026-02-06 18:39:38 +07:00
parent 1ee2130d88
commit 4d41d6540a
11 changed files with 573 additions and 60 deletions

View File

@@ -1,8 +1,10 @@
import { hydrateQueryCache } from '@pinia/colada';
import 'uno.css';
import PiniaSharedState from './lib/PiniaSharedState';
import { createApp } from './main';
async function render() {
const { app, router, queryCache } = createApp();
const { app, router, queryCache, pinia } = createApp();
pinia.use(PiniaSharedState({enable: true, initialize: true}));
hydrateQueryCache(queryCache, (window as any).$colada || {});
router.isReady().then(() => {
app.mount('body', true)