From 7042c053c0d1208461b5e17f8c2ae67035455a8a Mon Sep 17 00:00:00 2001 From: root Date: Fri, 6 Nov 2026 00:29:14 +0800 Subject: [PATCH] fix(copy): use glossary punctuation in route loading error --- apps/web/app/router.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/app/router.tsx b/apps/web/app/router.tsx index 1f1696e7..89c1ec9f 100644 --- a/apps/web/app/router.tsx +++ b/apps/web/app/router.tsx @@ -10,7 +10,7 @@ const modules = import.meta.glob("./routes/**/*.tsx"); async function loadPage(modulePath: string, href: string) { const module = await modules[`./routes/${modulePath}.tsx`]?.(); - if (!module) throw new Error(`路由模块不存在: ${modulePath}`); + if (!module) throw new Error(`路由模块不存在:${modulePath}`); const result = await module.clientLoader?.({ request: new Request(new URL(href, window.location.origin)) }); if (result instanceof Response && result.status >= 300 && result.status < 400) { const target = new URL(result.headers.get("Location") ?? "/console", window.location.origin);