Files
urbanLifeline/urbanLifelineWeb/packages/workcase/src/config.ts
2025-12-15 14:50:29 +08:00

34 lines
964 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Workcase 应用配置
*/
/**
* AES 加密密钥(与后端保持一致)
* 对应后端配置security.aes.secret-key
* Base64 编码的 32 字节密钥256 位)
*/
export const AES_SECRET_KEY = 'MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI=' // Base64 编码,解码后是 "12345678901234567890123456789012" (32字节)
/**
* API 基础地址
* 注意:使用 shared 的 APP_CONFIG 统一管理,这里保留用于特殊场景
*/
export const API_BASE_URL = (import.meta as any).env?.VITE_API_BASE_URL || '/api'
/**
* Platform URL单点登录入口
* 开发环境:
* - 通过nginx访问时使用 '/'(推荐)
* - 直接访问各服务时使用 'http://localhost:7001'
* 生产环境:统一使用 '/'
*/
export const PLATFORM_URL = (import.meta as any).env?.VITE_PLATFORM_URL || '/'
/**
* 应用配置
*/
export const APP_CONFIG = {
name: '泰豪小电',
version: '1.0.0',
copyright: '泰豪电源'
}