From 397bb1e806e439e7c798560f30135a8d114641c9 Mon Sep 17 00:00:00 2001 From: jiangzhixiong <710328466@qq.com> Date: Wed, 13 Mar 2024 17:12:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=BE=AE=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E5=BC=95=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .umirc.ts | 4 +++- src/app.ts | 35 +++++++++++++---------------------- 2 files changed, 16 insertions(+), 23 deletions(-) diff --git a/.umirc.ts b/.umirc.ts index 5584983..3a822d8 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -7,7 +7,9 @@ export default defineConfig({ initialState: {}, layout: false, qiankun: { - master: {}, + master: { + prefetch: false, + }, }, routes: [ { diff --git a/src/app.ts b/src/app.ts index c427caf..9826c18 100644 --- a/src/app.ts +++ b/src/app.ts @@ -16,38 +16,29 @@ export function useQiankunStateForSlave() { }; } -const env = process.env.NODE_ENV; - export const qiankun = { apps: [ { name: 'intelligent-file-cabinet', // 盒子管理 - entry: - env === 'production' - ? '//localhost:30068/intelligent-file-cabinet/' - : '//localhost:30068/', - props: {}, - }, - { - name: 'algorithm-warehouse', // AI 算法分析 - entry: - env === 'production' - ? '//localhost:30078/algorithm-warehouse/' - : '//localhost:30078/', + entry: '//localhost:30068/intelligent-file-cabinet/', + props: { + accountInfo: { + username: 'admin', + password: 'test123', + }, + }, }, { name: 'smart-video-analysis', // AI 智能分析仓 - entry: - env === 'production' - ? '//localhost:30088/smart-video-analysis/' - : '//localhost:30088/', + entry: '//localhost:30088/smart-video-analysis/', + }, + { + name: 'algorithm-warehouse', // AI 算法分析 + entry: '//localhost:30078/algorithm-warehouse/', }, { name: 'communal-facilities-pages', // 物料库 - entry: - env === 'production' - ? '//localhost:30098/communal-facilities-pages/' - : '//localhost:30098/', + entry: '//localhost:30098/communal-facilities-pages/', }, ], lifeCycles: {