fix: 修改端口号
This commit is contained in:
parent
b655cdf8d8
commit
641df33dd7
27
.umirc.ts
27
.umirc.ts
@ -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',
|
||||
});
|
||||
|
||||
|
36
src/app.ts
36
src/app.ts
@ -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',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user