从服务端归档恢复项目源码(服务端 upload-pack 异常,无法 clone)

This commit is contained in:
CodeBuddy
2026-10-26 16:35:28 +08:00
commit 875976a120
318 changed files with 42625 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
// 底部导航只属于三个主页面,二级页面由顶部返回按钮导航。
const paths = {home:'pages/index/index',records:'pages/discover/discover',profile:'pages/profile/profile'};
function tabForPage(route) {
const current = String(route || '').replace(/^\//, '').split('?')[0];
return Object.keys(paths).find(function(tab) { return paths[tab] === current; }) || '';
}
module.exports = { tabForPage, paths };