From 2ec6f6c4baa155197ff9b493b4b8c391c45e4a7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Sun, 26 Oct 2025 21:28:25 +0800 Subject: [PATCH] =?UTF-8?q?docs(locales-4-route):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E6=A0=87=E9=A2=98=E5=9B=BD=E9=99=85=E5=8C=96?= =?UTF-8?q?=E6=9C=BA=E5=88=B6=E8=AF=B4=E6=98=8E=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales-4-route/README.md | 66 +++++++++++++++++++ src/locales-4-route/_messages-auto-imports.ts | 1 + src/locales-4-route/en-US.ts | 2 +- src/locales-4-route/zh-CN.ts | 2 +- src/pages/Home.page.vue | 7 +- 5 files changed, 70 insertions(+), 8 deletions(-) create mode 100644 src/locales-4-route/README.md diff --git a/src/locales-4-route/README.md b/src/locales-4-route/README.md new file mode 100644 index 0000000..a4d28dc --- /dev/null +++ b/src/locales-4-route/README.md @@ -0,0 +1,66 @@ +# `locales-4-route` + +此目录存放专门用于**路由名称**的国际化(i18n)消息。这些消息通过一套自定义的编译时安全机制,为应用的导航菜单提供标题。 + +## 解决什么问题? + +`unplugin-vue-router` 的 `definePage()` 宏在编译时执行,无法访问 Vue `