修改uts类型

This commit is contained in:
刘辉
2025-09-23 13:22:09 +08:00
parent dfad4ff040
commit 738f44bb14
4 changed files with 9 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ import { storage, last, isNull, isEmpty, get, isFunction, toArray, map, debounce
// 路由信息类型
type RouteInfo = {
path: string;
meta: UTSJSONObject;
meta?: UTSJSONObject;
};
// 跳转前钩子类型
@@ -55,8 +55,8 @@ export class Router {
}
// 获取页面样式
const page = PAGES.find((e) => e.path == path);
const style = page?.style ?? {};
const meta = page?.meta ?? {};
const style = page?.style;
const meta = page?.meta;
// 获取页面暴露的方法
// @ts-ignore
let exposed = e.vm as any;

View File

@@ -53,4 +53,5 @@ export type PageInstance = {
query: UTSJSONObject;
exposed: any;
isCustomNavbar: boolean;
meta?: UTSJSONObject;
};