(originUrl: string)
| 4 | * @returns 解析后的url |
| 5 | */ |
| 6 | export function parseUrlStr(originUrl: string): string { |
| 7 | return String(originUrl).replace( |
| 8 | '{BACKEND}', |
| 9 | process.env.NODE_ENV === 'development' |
| 10 | ? 'http://localhost:11000' |
| 11 | : window.location.origin |
| 12 | ); |
| 13 | } |
no outgoing calls
no test coverage detected