Conf:请求库替换,移除之前的flyIo,改用luch-request

This commit is contained in:
linxi
2024-10-18 14:48:22 +08:00
parent b0ac014816
commit cb6545ecd7
17 changed files with 1327 additions and 36 deletions
+14
View File
@@ -0,0 +1,14 @@
'use strict'
/**
* Creates a new URL by combining the specified URLs
*
* @param {string} baseURL The base URL
* @param {string} relativeURL The relative URL
* @returns {string} The combined URL
*/
export default function combineURLs(baseURL, relativeURL) {
return relativeURL
? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
: baseURL
}