From 0bc82d3b8cbf0122541c8bae25648e03d19e7292 Mon Sep 17 00:00:00 2001 From: zhangjing1 Date: Thu, 26 Mar 2026 13:42:42 +0800 Subject: [PATCH] feat: configurable document title via VUE_APP_PAGE_TITLE - Inject from env in public/index.html (fallback ECShopX)\n- Document VUE_APP_PAGE_TITLE in .env\n- Add i18n reference keys 91quyic5, a3xlub5; ensure newline at EOF for index.json Made-with: Cursor --- .env | 3 +++ public/index.html | 2 +- src/i18n/lang/index.json | 12 +++++++++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 44fc473..e152661 100644 --- a/.env +++ b/.env @@ -1,3 +1,6 @@ +# 浏览器标签页标题(构建时注入 public/index.html) +VUE_APP_PAGE_TITLE=ECShopX + VUE_APP_IS_SAAS=false VUE_APP_BASE_API= VUE_APP_PUBLIC_PATH=/ diff --git a/public/index.html b/public/index.html index 4d52cf2..27779c4 100755 --- a/public/index.html +++ b/public/index.html @@ -7,7 +7,7 @@ name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" /> - <title>ECShopX + <%= process.env.VUE_APP_PAGE_TITLE || 'ECShopX' %>