1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| export const micros = [
| {
| name: 'fast',
| desc: '脚手架',
| port: 90,
| path: 'demo'
| },
| {
| name: 'irs',
| desc: '脚手架',
| port: 8002,
| path: 'home'
| }
| ]
| export const getUrl = (appName: string, mciroList = micros) => {
| const config = mciroList.find((item) => item.name === appName)
| console.log(config)
| return `//localhost:${config.port}/${config.name}/${config.path}`
| }
|
|