fix: 修改端口号

This commit is contained in:
江志雄 2024-03-05 11:46:01 +08:00
parent b655cdf8d8
commit 641df33dd7
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 算法仓平台',
name: '盒子管理',
path: '/smart-cabinet/*',
microApp: '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 }> {
@ -20,25 +20,25 @@ export const qiankun = {
apps: [
{
name: 'smart-cabinet', // 盒子管理
entry: '//localhost:8668',
entry: '//localhost:30068',
props: {
accountInfo: {
username: 'admin',
password: 'test123',
}
}
},
},
},
{
name: 'smart-video-analysis', // AI 智能分析仓
entry: '//localhost:8678'
entry: '//localhost:30088',
},
{
name: 'algorithm-warehouse', // AI 算法分析
entry: '//localhost:8688'
entry: '//localhost:30078',
},
{
name: 'communal-facilities-pages', // 物料库
entry: '//localhost:8698'
}
]
entry: '//localhost:30098',
},
],
};