This commit is contained in:
2025-02-15 19:51:43 +08:00
parent 9ce6dcf2dd
commit 2a6628ad25
3 changed files with 57 additions and 6 deletions

View File

@@ -0,0 +1,12 @@
import type { Page } from '@kevisual/store/page';
import type { QueryRouterServer } from '@kevisual/router';
export const page = useContextKey('page', () => {
return new window.Page({
basename: '',
}) as unknown as Page;
});
export const app = useContextKey('app', () => {
console.error('app not found');
return null as unknown as QueryRouterServer;
});