Route Navigation
push / replace / relaunch / back, auto-detect TabBar, declarative RouterLink
Provide a routing management system for uni-app (Vue 3) that is similar to the style of vue-router
push / replace / relaunch / back, auto-detect TabBar, declarative RouterLink
Global beforeEach / beforeResolve / afterEach and per-route guards, guardRoute for cold-start execution, InterceptorPlugin intercepts native APIs
params for complex data without URL exposure, auto-preserved after back(), queryInt / queryNumber / queryBool convenience methods
events and eventChannel bidirectional communication; useUniEventChannel supports all navigation methods; sticky cache prevents event loss
RouterLink navigation + TabBar / TabBarItem custom bottom navigation, SCSS variables and CSS custom properties for theming
Global mixin injected at install auto-invokes syncRoute(); App physical back / H5 browser back are intercepted by onBeforeBack, other scenarios auto-sync. No manual sync needed
RouterError / NavigationFailure / UniApiError complete system, onError global capture, isNavigationFailure() discrimination
Inline animation params and route-level meta.animation defaults; native window animation on App, CSS transition on H5 for push/back
Complete type definitions and composables, useRouter / useRoute / usePageChannel / onBeforeRouteLeave / useLink, seamlessly integrate with Vue 3
