fix: 区分本地和线上打包

This commit is contained in:
江志雄 2024-03-12 14:19:35 +08:00
parent 7719334223
commit 943b185bc6

View File

@ -16,29 +16,38 @@ export function useQiankunStateForSlave() {
}; };
} }
const env = process.env.NODE_ENV;
export const qiankun = { export const qiankun = {
apps: [ apps: [
{ {
name: 'intelligent-file-cabinet', // 盒子管理 name: 'intelligent-file-cabinet', // 盒子管理
entry: '//localhost:30068/intelligent-file-cabinet/', entry:
props: { env === 'production'
accountInfo: { ? '//localhost:30068/intelligent-file-cabinet/'
username: 'admin', : '//localhost:30068/',
password: 'test123', props: {},
},
},
},
{
name: 'smart-video-analysis', // AI 智能分析仓
entry: '//localhost:30088/smart-video-analysis/',
}, },
{ {
name: 'algorithm-warehouse', // AI 算法分析 name: 'algorithm-warehouse', // AI 算法分析
entry: '//localhost:30078/algorithm-warehouse/', entry:
env === 'production'
? '//localhost:30078/smart-video-analysis/'
: '//localhost:30078/',
},
{
name: 'smart-video-analysis', // AI 智能分析仓
entry:
env === 'production'
? '//localhost:30088/algorithm-warehouse/'
: '//localhost:30088/',
}, },
{ {
name: 'communal-facilities-pages', // 物料库 name: 'communal-facilities-pages', // 物料库
entry: '//localhost:30098/communal-facilities-pages/', entry:
env === 'production'
? '//localhost:30098/communal-facilities-pages/'
: '//localhost:30098/',
}, },
], ],
lifeCycles: { lifeCycles: {