Update from Vibe Studio

This commit is contained in:
Vibe Studio
2026-01-09 14:52:46 +00:00
parent 42a0efe70b
commit 47fa6d98b2
28661 changed files with 2421771 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
// /userInfo/2144/id => ['/userInfo','/userInfo/2144,'/userInfo/2144/id']
export function urlToList(url) {
if (!url || url === '/') {
return ['/'];
}
var urlList = url.split('/').filter(function (i) {
return i;
});
return urlList.map(function (urlItem, index) {
return "/".concat(urlList.slice(0, index + 1).join('/'));
});
}