feat: Add video detail management components and enhance video state sharing
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user