Merge branch 'hotfix/fixMicroAppFail-20240313' into 'master'

fix: 修改主子应用链接

See merge request web-project/aircraft-carrier-fleet!8
This commit is contained in:
刘汉华 2024-03-18 11:35:47 +08:00
commit 04422637fb

View File

@ -16,11 +16,13 @@ export function useQiankunStateForSlave() {
}; };
} }
const hostname = location.hostname;
export const qiankun = { export const qiankun = {
apps: [ apps: [
{ {
name: 'intelligent-file-cabinet', // 盒子管理 name: 'intelligent-file-cabinet', // 盒子管理
entry: '//localhost:30068/intelligent-file-cabinet/', entry: `//${hostname}:30068/intelligent-file-cabinet/`,
props: { props: {
accountInfo: { accountInfo: {
username: 'admin', username: 'admin',
@ -30,15 +32,15 @@ export const qiankun = {
}, },
{ {
name: 'smart-video-analysis', // AI 智能分析仓 name: 'smart-video-analysis', // AI 智能分析仓
entry: '//localhost:30088/smart-video-analysis/', entry: `//${hostname}:30088/smart-video-analysis/`,
}, },
{ {
name: 'algorithm-warehouse', // AI 算法分析 name: 'algorithm-warehouse', // AI 算法分析
entry: '//localhost:30078/algorithm-warehouse/', entry: `//${hostname}:30078/algorithm-warehouse/`,
}, },
{ {
name: 'communal-facilities-pages', // 物料库 name: 'communal-facilities-pages', // 物料库
entry: '//localhost:30098/communal-facilities-pages/', entry: `//${hostname}:30098/communal-facilities-pages/`,
}, },
], ],
lifeCycles: { lifeCycles: {