From 641df33dd7c492520157670852dad2c817f4e610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E5=BF=97=E9=9B=84?= Date: Tue, 5 Mar 2024 11:46:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .umirc.ts | 27 +++++++++++++++++++-------- src/app.ts | 36 ++++++++++++++++++------------------ 2 files changed, 37 insertions(+), 26 deletions(-) diff --git a/.umirc.ts b/.umirc.ts index b5d9e1f..3a72c5e 100644 --- a/.umirc.ts +++ b/.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', }); - diff --git a/src/app.ts b/src/app.ts index b50f824..0f74b39 100644 --- a/src/app.ts +++ b/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' - } - ] -}; \ No newline at end of file + name: 'communal-facilities-pages', // 物料库 + entry: '//localhost:30098', + }, + ], +};