web打包问题

This commit is contained in:
2026-01-07 15:30:29 +08:00
parent ec61f134a8
commit 72cea2935d
22 changed files with 762 additions and 335 deletions

View File

@@ -0,0 +1,65 @@
/**
* @description 本地开发环境配置文件
* 用于 dev 和 preview 模式
*/
window.APP_RUNTIME_CONFIG = {
// 环境标识
env: 'production',
// API 配置
api: {
baseUrl: 'https://org.xyzh.yslg/api',
timeout: 30000
},
// 应用基础路径
baseUrl: '/workcase/',
// 文件配置
file: {
downloadUrl: 'https://org.xyzh.yslg/api/urban-lifeline/file/download/',
uploadUrl: 'https://org.xyzh.yslg/api/urban-lifeline/file/upload',
maxSize: {
image: 5,
video: 100,
document: 10
},
acceptTypes: {
image: 'image/*',
video: 'video/*',
document: '.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx'
}
},
// Token 配置
token: {
key: 'token',
refreshThreshold: 300000
},
// 公共资源路径
publicImgPath: '/workcase/img',
publicWebPath: '/workcase',
// 单点登录配置
sso: {
platformUrl: 'https://org.xyzh.yslg/platform/',
workcaseUrl: 'https://org.xyzh.yslg/workcase/',
biddingUrl: 'https://org.xyzh.yslg/bidding/'
},
// AES 加密密钥(本地开发用,生产环境需要替换)
aesSecretKey: 'MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI=',
// Jitsi 视频会议配置
jitsi: {
serverUrl: 'https://meet.jit.si'
},
// 功能开关
features: {
enableDebug: true,
enableMockData: false
}
};