@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 +0 -2
- package/dist/index.mjs +0 -2
- package/package.json +1 -1
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);
|