更新
This commit is contained in:
@@ -4,8 +4,8 @@ VITE_PORT = 8002
|
|||||||
# spa-title
|
# spa-title
|
||||||
VITE_GLOB_APP_TITLE = Django+AntDesign版
|
VITE_GLOB_APP_TITLE = Django+AntDesign版
|
||||||
|
|
||||||
# spa shortname
|
# spa shortname (仅允许字母、数字和下划线,不可含+/-/空格等特殊字符)
|
||||||
VITE_GLOB_APP_SHORT_NAME = Django+AntDesign版
|
VITE_GLOB_APP_SHORT_NAME = 小蚂蚁云数据中台解决方案
|
||||||
|
|
||||||
# 生产环境 开启mock
|
# 生产环境 开启mock
|
||||||
VITE_GLOB_PROD_MOCK = false
|
VITE_GLOB_PROD_MOCK = false
|
||||||
|
|||||||
@@ -5,5 +5,6 @@
|
|||||||
export const getConfigFileName = (env: Record<string, any>) => {
|
export const getConfigFileName = (env: Record<string, any>) => {
|
||||||
return `__PRODUCTION__${env.VITE_GLOB_APP_SHORT_NAME || '__APP'}__CONF__`
|
return `__PRODUCTION__${env.VITE_GLOB_APP_SHORT_NAME || '__APP'}__CONF__`
|
||||||
.toUpperCase()
|
.toUpperCase()
|
||||||
.replace(/\s/g, '');
|
.replace(/\s/g, '')
|
||||||
|
.replace(/[^A-Z0-9_]/g, '_');
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user