From 8d5c81a5ed1fdedf5fde4fd39771fd24b6a6fabf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=A7=E9=98=B3=E9=B9=8F?= <61752998+iuroc@users.noreply.github.com> Date: Tue, 9 Jan 2024 05:22:40 +0000 Subject: [PATCH] version 1.2.1 --- README.md | 2 +- js/{vanjs-router-1.1.9.nomodule.js => vanjs-router-1.2.1.js} | 2 ++ package.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) rename js/{vanjs-router-1.1.9.nomodule.js => vanjs-router-1.2.1.js} (96%) diff --git a/README.md b/README.md index 20efb05..334d7b4 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ npm install vanjs-core vanjs-router ```html - + ``` ### Import and Usage diff --git a/js/vanjs-router-1.1.9.nomodule.js b/js/vanjs-router-1.2.1.js similarity index 96% rename from js/vanjs-router-1.1.9.nomodule.js rename to js/vanjs-router-1.2.1.js index 554cbd1..7ed537a 100644 --- a/js/vanjs-router-1.1.9.nomodule.js +++ b/js/vanjs-router-1.2.1.js @@ -35,3 +35,5 @@ const routeTo = (name = 'home', args = []) => { else location.hash = `/${name}/${args.join('/')}`; }; +window.Route = Route; +Window.routeTo = routeTo; \ No newline at end of file diff --git a/package.json b/package.json index a1f4c30..38f0b55 100644 --- a/package.json +++ b/package.json @@ -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",