web iframe结构实现
This commit is contained in:
@@ -43,6 +43,12 @@ export interface AppRuntimeConfig {
|
||||
};
|
||||
publicImgPath: string;
|
||||
publicWebPath: string;
|
||||
// 单点登录配置
|
||||
sso?: {
|
||||
platformUrl: string; // platform 平台地址
|
||||
workcaseUrl: string; // workcase 服务地址
|
||||
biddingUrl: string; // bidding 服务地址
|
||||
};
|
||||
features?: {
|
||||
enableDebug?: boolean;
|
||||
enableMockData?: boolean;
|
||||
@@ -92,6 +98,15 @@ const devConfig: AppRuntimeConfig = {
|
||||
publicImgPath: 'http://localhost:5173/img',
|
||||
publicWebPath: 'http://localhost:5173',
|
||||
|
||||
// 单点登录配置
|
||||
// 推荐:开发环境也通过nginx访问(http://localhost)
|
||||
// 备选:直接访问各服务端口(platformUrl: 'http://localhost:5001')
|
||||
sso: {
|
||||
platformUrl: '/', // 通过nginx访问platform
|
||||
workcaseUrl: '/workcase', // 通过nginx访问workcase
|
||||
biddingUrl: '/bidding' // 通过nginx访问bidding
|
||||
},
|
||||
|
||||
features: {
|
||||
enableDebug: true,
|
||||
enableMockData: false
|
||||
@@ -132,6 +147,13 @@ const prodDefaultConfig: AppRuntimeConfig = {
|
||||
publicImgPath: '/img',
|
||||
publicWebPath: '/',
|
||||
|
||||
// 单点登录配置(生产环境通过nginx代理)
|
||||
sso: {
|
||||
platformUrl: '/',
|
||||
workcaseUrl: '/workcase',
|
||||
biddingUrl: '/bidding'
|
||||
},
|
||||
|
||||
features: {
|
||||
enableDebug: false,
|
||||
enableMockData: false
|
||||
@@ -218,6 +240,13 @@ export const APP_CONFIG = {
|
||||
publicImgPath: config.publicImgPath,
|
||||
publicWebPath: config.publicWebPath,
|
||||
|
||||
// 单点登录配置
|
||||
sso: config.sso || {
|
||||
platformUrl: '/',
|
||||
workcaseUrl: '/workcase',
|
||||
biddingUrl: '/bidding'
|
||||
},
|
||||
|
||||
// 功能开关
|
||||
features: config.features || {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user