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 { defineConfig } from '@umijs/max';
|
||||||
import pkg from './package.json'
|
|
||||||
import Password from 'antd/es/input/Password';
|
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
favicons: ['/assets/logo.jpg'],
|
favicons: ['/assets/logo.jpg'],
|
||||||
access: {},
|
access: {},
|
||||||
model: {},
|
model: {},
|
||||||
outputPath: pkg.name,
|
|
||||||
initialState: {},
|
initialState: {},
|
||||||
layout: false,
|
layout: false,
|
||||||
qiankun: {
|
qiankun: {
|
||||||
@ -14,11 +11,25 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
name: 'AI 算法仓平台',
|
name: '盒子管理',
|
||||||
path: '/smart-cabinet/*',
|
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',
|
npmClient: 'pnpm',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
34
src/app.ts
34
src/app.ts
@ -1,4 +1,4 @@
|
|||||||
import { useState } from "react";
|
import { useState } from 'react';
|
||||||
|
|
||||||
// 运行时配置
|
// 运行时配置
|
||||||
export async function getInitialState(): Promise<{ name: string }> {
|
export async function getInitialState(): Promise<{ name: string }> {
|
||||||
@ -19,26 +19,26 @@ export function useQiankunStateForSlave() {
|
|||||||
export const qiankun = {
|
export const qiankun = {
|
||||||
apps: [
|
apps: [
|
||||||
{
|
{
|
||||||
name: 'smart-cabinet', // 盒子管理
|
name: 'smart-cabinet', // 盒子管理
|
||||||
entry: '//localhost:8668',
|
entry: '//localhost:30068',
|
||||||
props: {
|
props: {
|
||||||
accountInfo: {
|
accountInfo: {
|
||||||
username: 'admin',
|
username: 'admin',
|
||||||
password: 'test123',
|
password: 'test123',
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'smart-video-analysis', // AI 智能分析仓
|
name: 'smart-video-analysis', // AI 智能分析仓
|
||||||
entry: '//localhost:8678'
|
entry: '//localhost:30088',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'algorithm-warehouse', // AI 算法分析
|
name: 'algorithm-warehouse', // AI 算法分析
|
||||||
entry: '//localhost:8688'
|
entry: '//localhost:30078',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'communal-facilities-pages', // 物料库
|
name: 'communal-facilities-pages', // 物料库
|
||||||
entry: '//localhost:8698'
|
entry: '//localhost:30098',
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user