From 86bd6613b41166b82ac05c46938d8ef2ab2fef9a Mon Sep 17 00:00:00 2001 From: wangys <3401275564@qq.com> Date: Wed, 7 Jan 2026 16:25:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/config/app-config-shared.js | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/docker/urbanLifeline/web/config/app-config-shared.js b/docker/urbanLifeline/web/config/app-config-shared.js index 7f8485b7..6cd2d15b 100644 --- a/docker/urbanLifeline/web/config/app-config-shared.js +++ b/docker/urbanLifeline/web/config/app-config-shared.js @@ -3,18 +3,22 @@ * 此文件会被挂载到容器中,覆盖构建时的默认配置 */ window.APP_RUNTIME_CONFIG = { + // 环境标识 env: 'production', + // API 配置 api: { - baseUrl: '/api', + baseUrl: '/urban-lifeline', timeout: 30000 }, + // 应用基础路径 baseUrl: '/shared/', + // 文件配置 file: { - downloadUrl: '/api/urban-lifeline/file/download/', - uploadUrl: '/api/urban-lifeline/file/upload', + downloadUrl: '/urban-lifeline/file/download/', + uploadUrl: '/urban-lifeline/file/upload', maxSize: { image: 5, video: 100, @@ -27,20 +31,24 @@ window.APP_RUNTIME_CONFIG = { } }, + // Token 配置 token: { key: 'token', refreshThreshold: 300000 }, - publicImgPath: '/img', - publicWebPath: '/', + // 公共资源路径 + publicImgPath: '/shared/img', + publicWebPath: '/shared', + // 单点登录配置 sso: { - platformUrl: 'https://192.168.130.131/', - workcaseUrl: 'https://192.168.130.131/workcase', - biddingUrl: 'https://192.168.130.131/bidding' + platformUrl: 'https://192.168.130.131/platform/', + workcaseUrl: 'https://192.168.130.131/workcase/', + biddingUrl: 'https://192.168.130.131/bidding/' }, + // 功能开关 features: { enableDebug: false, enableMockData: false