fix: modify

hisense
时启龙 2026-01-05 18:02:24 +08:00
parent 544bc39ffb
commit 4611bbf49c
2 changed files with 4 additions and 3 deletions

View File

@ -3,8 +3,9 @@
"name": "cmp-web" "name": "cmp-web"
}, },
{ {
"name": "cos-web", "name": "cos-web",
"activeRule": ["/cos", "/soa", "/screen", "/personal"] "entry": "/cos-web/",
"activeRule": ["/cos", "/soa", "/screen", "/personal"]
}, },
{ {
"name": "cms-web" "name": "cms-web"

View File

@ -18,7 +18,7 @@ export async function getMicroApp() {
deployAddress: string deployAddress: string
} }
} = await axios.get('/config/app.json') } = await axios.get('/config/app.json')
// 应用入口默认为60003端口加应用名称,匹配规则为数组时是根路径(cos) // 应用入口默认为port端口加应用名称,匹配规则为数组时是根路径(cos)
return configs.map((item: IAppConfig) => { return configs.map((item: IAppConfig) => {
const { name, activeRule = `/${name}`, entry = `${deployAddress}${Array.isArray(activeRule) ? '' : `${name}/`}` } = item const { name, activeRule = `/${name}`, entry = `${deployAddress}${Array.isArray(activeRule) ? '' : `${name}/`}` } = item
return { return {