From 0275812c7af2ab3818bdd305f557da7cbfffdf23 Mon Sep 17 00:00:00 2001 From: icssoa <615206459@qq.com> Date: Fri, 17 Oct 2025 23:27:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=96=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cool/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cool/router/index.ts b/cool/router/index.ts index 5105c82..fb62883 100644 --- a/cool/router/index.ts +++ b/cool/router/index.ts @@ -257,7 +257,7 @@ export class Router { // 获取页面元数据 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); } // 执行当前页面暴露的方法