Skip to content

Commit

Permalink
version 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
iuroc committed Jan 9, 2024
1 parent 330a395 commit 8d5c81a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ npm install vanjs-core vanjs-router

```html
<script src="https://cdn.jsdelivr.net/gh/vanjs-org/van/public/van-1.2.7.nomodule.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/iuroc/vanjs-router/js/vanjs-router-1.1.9.nomodule.js"></script>
<script src="https://cdn.jsdelivr.net/gh/iuroc/vanjs-router/js/vanjs-router.1.2.1.js"></script>
```

### Import and Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ const routeTo = (name = 'home', args = []) => {
else
location.hash = `/${name}/${args.join('/')}`;
};
window.Route = Route;
Window.routeTo = routeTo;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"vanjs-core": "^1.2.7"
},
"name": "vanjs-router",
"version": "1.1.9",
"version": "1.2.1",
"description": "基于 Van.js 的前端路由控制系统",
"main": "js/index.js",
"types": "src/index.ts",
Expand Down

0 comments on commit 8d5c81a

Please sign in to comment.