diff --git a/src/app.ts b/src/app.ts index ef8d387..bea67e2 100644 --- a/src/app.ts +++ b/src/app.ts @@ -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, 获取路由对象