web iframe结构实现

This commit is contained in:
2025-12-13 14:13:31 +08:00
parent e002f0d989
commit 1776aa2d1e
53 changed files with 3280 additions and 275 deletions

View File

@@ -0,0 +1,34 @@
/**
* 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:5001'
* 生产环境:统一使用 '/'
*/
export const PLATFORM_URL = (import.meta as any).env?.VITE_PLATFORM_URL || '/'
/**
* 应用配置
*/
export const APP_CONFIG = {
name: '泰豪小电',
version: '1.0.0',
copyright: '泰豪电源'
}