Skip to content

Commit

Permalink
feat(omi-router): add currentRoute prop
Browse files Browse the repository at this point in the history
  • Loading branch information
dntzhang committed Dec 19, 2023
1 parent 2245c6b commit 2f71d8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/omi-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "omi-router",
"version": "4.1.2",
"version": "4.1.3",
"description": "Router for Omi",
"main": "dist/index.es.js",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions packages/omi-router/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class Router {
params: Record<string, unknown> = {}
query: Record<string, unknown> = {}
hash: string = ''
currentRoute: Route | null = null

beforeEach(callback: Function) {
this.el.beforeEach(callback)
Expand Down

0 comments on commit 2f71d8c

Please sign in to comment.