Merge branch 'hotfix/fixMicroAppFail-20240313' into 'master'
fix: 修改微应用环境变量引入 See merge request web-project/aircraft-carrier-fleet!7
This commit is contained in:
commit
1aba06e6c8
@ -7,7 +7,9 @@ export default defineConfig({
|
|||||||
initialState: {},
|
initialState: {},
|
||||||
layout: false,
|
layout: false,
|
||||||
qiankun: {
|
qiankun: {
|
||||||
master: {},
|
master: {
|
||||||
|
prefetch: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
|
35
src/app.ts
35
src/app.ts
@ -16,38 +16,29 @@ 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:
|
entry: '//localhost:30068/intelligent-file-cabinet/',
|
||||||
env === 'production'
|
props: {
|
||||||
? '//localhost:30068/intelligent-file-cabinet/'
|
accountInfo: {
|
||||||
: '//localhost:30068/',
|
username: 'admin',
|
||||||
props: {},
|
password: 'test123',
|
||||||
},
|
},
|
||||||
{
|
},
|
||||||
name: 'algorithm-warehouse', // AI 算法分析
|
|
||||||
entry:
|
|
||||||
env === 'production'
|
|
||||||
? '//localhost:30078/algorithm-warehouse/'
|
|
||||||
: '//localhost:30078/',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'smart-video-analysis', // AI 智能分析仓
|
name: 'smart-video-analysis', // AI 智能分析仓
|
||||||
entry:
|
entry: '//localhost:30088/smart-video-analysis/',
|
||||||
env === 'production'
|
},
|
||||||
? '//localhost:30088/smart-video-analysis/'
|
{
|
||||||
: '//localhost:30088/',
|
name: 'algorithm-warehouse', // AI 算法分析
|
||||||
|
entry: '//localhost:30078/algorithm-warehouse/',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'communal-facilities-pages', // 物料库
|
name: 'communal-facilities-pages', // 物料库
|
||||||
entry:
|
entry: '//localhost:30098/communal-facilities-pages/',
|
||||||
env === 'production'
|
|
||||||
? '//localhost:30098/communal-facilities-pages/'
|
|
||||||
: '//localhost:30098/',
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
lifeCycles: {
|
lifeCycles: {
|
||||||
|
Loading…
Reference in New Issue
Block a user