* 需要匹配对应路由的 route
(pathname)
| 76 | * 需要匹配对应路由的 route |
| 77 | */ |
| 78 | getMatchRoute(pathname) { |
| 79 | const keys = Object.keys(pageUrlRouteMap) |
| 80 | for (const key of keys) { |
| 81 | const matchRes = pageUrlRouteMap[key](pathname) |
| 82 | |
| 83 | if (matchRes) return matchRes // 匹配成功 |
| 84 | } |
| 85 | |
| 86 | return null |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * 判断是否 tabBar 页面 |
no outgoing calls
no test coverage detected