引入uView作为ui框架

This commit is contained in:
dengxin
2024-02-06 15:49:51 +08:00
parent 73c3a4abbf
commit 4d9c3ddf5f
372 changed files with 38505 additions and 0 deletions

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
}