fix: modify
parent
544bc39ffb
commit
4611bbf49c
|
|
@ -4,6 +4,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "cos-web",
|
"name": "cos-web",
|
||||||
|
"entry": "/cos-web/",
|
||||||
"activeRule": ["/cos", "/soa", "/screen", "/personal"]
|
"activeRule": ["/cos", "/soa", "/screen", "/personal"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue