;优化,添加组件库

This commit is contained in:
yzy committed 2026-01-08 11:07:35 +08:00
1 parent 1facf7d6c8
commit 85c436551f
534 files changed
+54404 -39

No files matched your search

@@ -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
}