* @private * @function WebMap.prototype.getRootUrl * @description 获取请求地址。 * @param {string} url 请求的地址。 * @param {boolean | undefined} proxy 是否带上代理。 * @returns {Promise } 请求地址。
(url, proxy)
| 4438 | * @returns {Promise<T | never>} 请求地址。 |
| 4439 | */ |
| 4440 | getRequestUrl(url, proxy) { |
| 4441 | url = this.formatUrlWithCredential(url); |
| 4442 | return this.isAddProxy(url, proxy) ? |
| 4443 | `${this.getProxy()}${encodeURIComponent(url)}`: |
| 4444 | url |
| 4445 | } |
| 4446 | |
| 4447 | /** |
| 4448 | * @description 给 URL 带上凭证密钥。 |
no test coverage detected