集中配置四端品牌展示名称

This commit is contained in:
2026-07-02 23:15:57 +08:00
parent d999af7a81
commit 2c23d764a1
27 changed files with 117 additions and 33 deletions
+11 -3
View File
@@ -127,6 +127,13 @@ const DEFAULT_DOMAINS = {
release: 'https://yunail.art'
}
const DEFAULT_BRAND_CONFIG = {
appName: 'Jayu Artist',
appNameEn: 'Jiayu Designer',
appTitle: 'Jayu Artist',
defaultUserName: 'Yumi 用户'
}
/**
* Purpose: DOMAIN_MAP supports config.js by holding or executing the domain map page or API role.
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
@@ -157,9 +164,10 @@ const API_DOMAIN = ensureHttps(
ENV_VERSION
)
const BRAND_CONFIG = {
appName: String(localOverride.appName || 'Jayu Artist'),
appNameEn: String(localOverride.appNameEn || 'Jiayu Designer'),
appTitle: String(localOverride.appTitle || 'Jayu Artist')
appName: String(localOverride.appName || DEFAULT_BRAND_CONFIG.appName),
appNameEn: String(localOverride.appNameEn || DEFAULT_BRAND_CONFIG.appNameEn),
appTitle: String(localOverride.appTitle || DEFAULT_BRAND_CONFIG.appTitle),
defaultUserName: String(localOverride.defaultUserName || DEFAULT_BRAND_CONFIG.defaultUserName)
}
module.exports = {