From f01734490f75fe82f0a281cb56e9cdb82dce834c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=9A=82=E8=9A=81=E4=BA=91?= Date: Sat, 12 Sep 2026 16:22:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/.env | 4 ++-- ui/build/getConfigFileName.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/.env b/ui/.env index 1afd454..35306fc 100644 --- a/ui/.env +++ b/ui/.env @@ -4,8 +4,8 @@ VITE_PORT = 8002 # spa-title VITE_GLOB_APP_TITLE = Django+AntDesign版 -# spa shortname -VITE_GLOB_APP_SHORT_NAME = Django+AntDesign版 +# spa shortname (仅允许字母、数字和下划线,不可含+/-/空格等特殊字符) +VITE_GLOB_APP_SHORT_NAME = 小蚂蚁云数据中台解决方案 # 生产环境 开启mock VITE_GLOB_PROD_MOCK = false diff --git a/ui/build/getConfigFileName.ts b/ui/build/getConfigFileName.ts index d61cd41..32e0269 100644 --- a/ui/build/getConfigFileName.ts +++ b/ui/build/getConfigFileName.ts @@ -5,5 +5,6 @@ export const getConfigFileName = (env: Record) => { return `__PRODUCTION__${env.VITE_GLOB_APP_SHORT_NAME || '__APP'}__CONF__` .toUpperCase() - .replace(/\s/g, ''); + .replace(/\s/g, '') + .replace(/[^A-Z0-9_]/g, '_'); };