@wot-ui/router 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -157,8 +157,6 @@ function createRouter(options) {
157
157
  const finalType = typeof to === "object" && to.navType || type || "push";
158
158
  try {
159
159
  await performUniNavigate(finalType, url);
160
- currentRoute.value = targetLocation;
161
- afterGuards.forEach((guard) => guard(targetLocation, fromLocation));
162
160
  return Promise.resolve();
163
161
  } catch (error) {
164
162
  return Promise.reject(error);
package/dist/index.mjs CHANGED
@@ -157,8 +157,6 @@ function createRouter(options) {
157
157
  const finalType = typeof to === "object" && to.navType || type || "push";
158
158
  try {
159
159
  await performUniNavigate(finalType, url);
160
- currentRoute.value = targetLocation;
161
- afterGuards.forEach((guard) => guard(targetLocation, fromLocation));
162
160
  return Promise.resolve();
163
161
  } catch (error) {
164
162
  return Promise.reject(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wot-ui/router",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "轻量级 uni-app vue3 路由库",
5
5
  "repository": {
6
6
  "type": "git",