优化取值

This commit is contained in:
icssoa
2025-10-17 23:27:31 +08:00
parent a422209cc1
commit 0275812c7a

View File

@@ -257,7 +257,7 @@ export class Router {
// 获取页面元数据 // 获取页面元数据
getMeta(path: string) { getMeta(path: string) {
return PAGES.find((e) => e.path.includes(path))?.meta ?? ({} as UTSJSONObject); return PAGES.find((e) => path.includes(e.path))?.meta ?? ({} as UTSJSONObject);
} }
// 执行当前页面暴露的方法 // 执行当前页面暴露的方法