fix: add iifi for Page

This commit is contained in:
熊潇 2024-12-22 21:41:23 +08:00
parent 9b3de5eba3
commit 7cb42edc5f

View File

@ -1,10 +1,11 @@
// 当前的功能把所有的模块注入到windows对象当中
import { useConfigKey, useContextKey } from './web-env.ts';
import { QueryRouterServer } from '@kevisual/router/browser';
import { Page } from './page.ts';
// bind to window, 必须要的获取全局的环境变量
window.useConfigKey = useConfigKey;
window.useContextKey = useContextKey;
window.Page = Page;
window.QueryRouterServer = QueryRouterServer;
// bind to window, 获取路由对象