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