feat:绑定设备和设备详情

This commit is contained in:
李伊帆
2026-10-10 11:11:44 +08:00
parent 179bd3b66c
commit d4b02745e1
64 changed files with 3526 additions and 221 deletions

View File

@@ -49,7 +49,8 @@ const routes: Record<TabKey, string> = {
}
function resolveTabFromRoute(): TabKey {
const route = getCurrentPages().at(-1)?.route ?? ''
const pages = getCurrentPages()
const route = pages.length > 0 ? pages[pages.length - 1].route ?? '' : ''
return route.includes('mine') ? 'mine' : 'device'
}