This commit is contained in:
2026-09-12 16:22:13 +08:00
parent 8c67b1ba51
commit f01734490f
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -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
+2 -1
View File
@@ -5,5 +5,6 @@
export const getConfigFileName = (env: Record<string, any>) => {
return `__PRODUCTION__${env.VITE_GLOB_APP_SHORT_NAME || '__APP'}__CONF__`
.toUpperCase()
.replace(/\s/g, '');
.replace(/\s/g, '')
.replace(/[^A-Z0-9_]/g, '_');
};