Merge branch 'develop' into 'master'

fix: 修改端口号

See merge request web-project/aircraft-carrier-fleet!2
This commit is contained in:
刘汉华 2024-03-05 13:31:03 +08:00
commit 28e04df2c1
2 changed files with 37 additions and 26 deletions

View File

@ -1,12 +1,9 @@
import { defineConfig } from '@umijs/max';
import pkg from './package.json'
import Password from 'antd/es/input/Password';
export default defineConfig({
favicons: ['/assets/logo.jpg'],
access: {},
model: {},
// outputPath: pkg.name,
initialState: {},
layout: false,
qiankun: {
@ -14,11 +11,25 @@ export default defineConfig({
},
routes: [
{
name: 'AI 算法仓平台',
path: '/smart-cabinet/*',
microApp: 'smart-cabinet'
}
name: '盒子管理',
path: '/smart-cabinet/*',
microApp: 'smart-cabinet',
},
{
name: 'AI 算法仓平台',
path: '/algorithm-warehouse/*',
microApp: 'algorithm-warehouse',
},
{
name: 'AI 视频分析',
path: '/smart-video-analysis/*',
microApp: 'smart-video-analysis',
},
{
name: '物料库',
path: '/communal-facilities-pages/*',
microApp: 'communal-facilities-pages',
},
],
npmClient: 'pnpm',
});

View File

@ -1,4 +1,4 @@
import { useState } from "react";
import { useState } from 'react';
// 运行时配置
export async function getInitialState(): Promise<{ name: string }> {
@ -19,26 +19,26 @@ export function useQiankunStateForSlave() {
export const qiankun = {
apps: [
{
name: 'smart-cabinet', // 盒子管理
entry: '//localhost:8668',
props: {
accountInfo: {
username: 'admin',
password: 'test123',
}
}
name: 'smart-cabinet', // 盒子管理
entry: '//localhost:30068',
props: {
accountInfo: {
username: 'admin',
password: 'test123',
},
},
},
{
name: 'smart-video-analysis', // AI 智能分析仓
entry: '//localhost:8678'
name: 'smart-video-analysis', // AI 智能分析仓
entry: '//localhost:30088',
},
{
name: 'algorithm-warehouse', // AI 算法分析
entry: '//localhost:8688'
name: 'algorithm-warehouse', // AI 算法分析
entry: '//localhost:30078',
},
{
name: 'communal-facilities-pages', // 物料库
entry: '//localhost:8698'
}
]
};
name: 'communal-facilities-pages', // 物料库
entry: '//localhost:30098',
},
],
};